Fix video block in abuse table

This commit is contained in:
Chocobozzz 2020-08-26 08:45:48 +02:00
parent 96df6ca606
commit 365d9083c9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit, AfterV
label: $localize`Block video`,
isDisplayed: abuse => abuse.video && !abuse.video.deleted && !abuse.video.blacklisted,
handler: abuse => {
this.videoBlocklistService.blockVideo(abuse.video.id, undefined, true)
this.videoBlocklistService.blockVideo(abuse.video.id, undefined, abuse.video.channel.isLocal)
.subscribe(
() => {
this.notifier.success($localize`Video blocked.`)