mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Add ability to list comments on local videos
This commit is contained in:
parent
045224d5eb
commit
0e6cd1c00f
7 changed files with 40 additions and 2 deletions
|
@ -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<ResultList<VideoComment>>({
|
||||
...options,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue