diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-12 11:05:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-16 10:33:27 +0200 |
commit | 0e6cd1c00f71554fe7375a96db693a6983951ba6 (patch) | |
tree | be9b049e047895c88c561202377f6c5e64ae40df /shared/server-commands/videos/comments-command.ts | |
parent | 045224d5eb6a41081186c4040bab1570b9d9ad65 (diff) | |
download | PeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.tar.gz PeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.tar.zst PeerTube-0e6cd1c00f71554fe7375a96db693a6983951ba6.zip |
Add ability to list comments on local videos
Diffstat (limited to 'shared/server-commands/videos/comments-command.ts')
-rw-r--r-- | shared/server-commands/videos/comments-command.ts | 3 |
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, |