1
0
Fork 0
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:
Chocobozzz 2022-08-12 11:05:11 +02:00
parent 045224d5eb
commit 0e6cd1c00f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 40 additions and 2 deletions

View file

@ -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,