aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-12 11:05:11 +0200
committerChocobozzz <me@florianbigard.com>2022-08-16 10:33:27 +0200
commit0e6cd1c00f71554fe7375a96db693a6983951ba6 (patch)
treebe9b049e047895c88c561202377f6c5e64ae40df /shared/server-commands
parent045224d5eb6a41081186c4040bab1570b9d9ad65 (diff)
downloadPeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.tar.gz
PeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.tar.zst
PeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.zip
Add ability to list comments on local videos
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,