diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-26 08:45:48 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-26 08:45:48 +0200 |
commit | 365d9083c938ea128e04c4f98e6b18dd26d86dd2 (patch) | |
tree | 1abea59e6011dc6fda50b73a3df9865dd229027d /client | |
parent | 96df6ca606ddf2b3116a788e89f70e8dafef3a44 (diff) | |
download | PeerTube-365d9083c938ea128e04c4f98e6b18dd26d86dd2.tar.gz PeerTube-365d9083c938ea128e04c4f98e6b18dd26d86dd2.tar.zst PeerTube-365d9083c938ea128e04c4f98e6b18dd26d86dd2.zip |
Fix video block in abuse table
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts index cc933db0d..20be94d6e 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts +++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts | |||
@@ -363,7 +363,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit, AfterV | |||
363 | label: $localize`Block video`, | 363 | label: $localize`Block video`, |
364 | isDisplayed: abuse => abuse.video && !abuse.video.deleted && !abuse.video.blacklisted, | 364 | isDisplayed: abuse => abuse.video && !abuse.video.deleted && !abuse.video.blacklisted, |
365 | handler: abuse => { | 365 | handler: abuse => { |
366 | this.videoBlocklistService.blockVideo(abuse.video.id, undefined, true) | 366 | this.videoBlocklistService.blockVideo(abuse.video.id, undefined, abuse.video.channel.isLocal) |
367 | .subscribe( | 367 | .subscribe( |
368 | () => { | 368 | () => { |
369 | this.notifier.success($localize`Video blocked.`) | 369 | this.notifier.success($localize`Video blocked.`) |