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 --- shared/server-commands/videos/comments-command.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/server-commands/videos') diff --git a/shared/server-commands/videos/comments-command.ts b/shared/server-commands/videos/comments-command.ts index f0d163a07..156cf452f 100644 --- a/shared/server-commands/videos/comments-command.ts +++ b/shared/server-commands/videos/comments-command.ts @@ -14,6 +14,7 @@ export class CommentsCommand extends AbstractCommand { count?: number sort?: string isLocal?: boolean + onLocalVideo?: boolean search?: string searchAccount?: string searchVideo?: string @@ -21,7 +22,7 @@ export class CommentsCommand extends AbstractCommand { const { sort = '-createdAt' } = options const path = '/api/v1/videos/comments' - const query = { sort, ...pick(options, [ 'start', 'count', 'isLocal', 'search', 'searchAccount', 'searchVideo' ]) } + const query = { sort, ...pick(options, [ 'start', 'count', 'isLocal', 'onLocalVideo', 'search', 'searchAccount', 'searchVideo' ]) } return this.getRequestBody>({ ...options, -- cgit v1.2.3