From 0e6cd1c00f71554fe7375a96db693a6983951ba6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Aug 2022 11:05:11 +0200 Subject: Add ability to list comments on local videos --- .../src/app/+admin/overview/comments/video-comment-list.component.ts | 4 ++++ client/src/app/shared/shared-video-comment/video-comment.service.ts | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'client/src/app') diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.ts b/client/src/app/+admin/overview/comments/video-comment-list.component.ts index f01a1629b..cfe40b92a 100644 --- a/client/src/app/+admin/overview/comments/video-comment-list.component.ts +++ b/client/src/app/+admin/overview/comments/video-comment-list.component.ts @@ -54,6 +54,10 @@ export class VideoCommentListComponent extends RestTable implements OnInit { { value: 'local:false', label: $localize`Remote comments` + }, + { + value: 'localVideo:true', + label: $localize`Comments on local videos` } ] } diff --git a/client/src/app/shared/shared-video-comment/video-comment.service.ts b/client/src/app/shared/shared-video-comment/video-comment.service.ts index 8cd94643a..8d2deedf7 100644 --- a/client/src/app/shared/shared-video-comment/video-comment.service.ts +++ b/client/src/app/shared/shared-video-comment/video-comment.service.ts @@ -190,6 +190,10 @@ export class VideoCommentService { prefix: 'local:', isBoolean: true }, + onLocalVideo: { + prefix: 'localVideo:', + isBoolean: true + }, searchAccount: { prefix: 'account:' }, searchVideo: { prefix: 'video:' } -- cgit v1.2.3