aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands
diff options
context:
space:
mode:
Diffstat (limited to 'shared/server-commands')
-rw-r--r--shared/server-commands/videos/comments-command.ts3
1 files changed, 2 insertions, 1 deletions
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 {
14 count?: number 14 count?: number
15 sort?: string 15 sort?: string
16 isLocal?: boolean 16 isLocal?: boolean
17 onLocalVideo?: boolean
17 search?: string 18 search?: string
18 searchAccount?: string 19 searchAccount?: string
19 searchVideo?: string 20 searchVideo?: string
@@ -21,7 +22,7 @@ export class CommentsCommand extends AbstractCommand {
21 const { sort = '-createdAt' } = options 22 const { sort = '-createdAt' } = options
22 const path = '/api/v1/videos/comments' 23 const path = '/api/v1/videos/comments'
23 24
24 const query = { sort, ...pick(options, [ 'start', 'count', 'isLocal', 'search', 'searchAccount', 'searchVideo' ]) } 25 const query = { sort, ...pick(options, [ 'start', 'count', 'isLocal', 'onLocalVideo', 'search', 'searchAccount', 'searchVideo' ]) }
25 26
26 return this.getRequestBody<ResultList<VideoComment>>({ 27 return this.getRequestBody<ResultList<VideoComment>>({
27 ...options, 28 ...options,