]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/server-commands/videos/comments-command.ts
Cleanup useless express validator messages
[github/Chocobozzz/PeerTube.git] / shared / server-commands / videos / comments-command.ts
index f0d163a0775f4114abe092cd6fb7a3b15e7569e7..156cf452f1b7c75f8b76bfe73abffa847a9cf599 100644 (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,