-import { pick } from 'lodash'
+import { pick } from '@shared/core-utils'
import { HttpStatusCode, ResultList, VideoComment, VideoCommentThreads, VideoCommentThreadTree } from '@shared/models'
import { unwrapBody } from '../requests'
import { AbstractCommand, OverrideCommandOptions } from '../shared'
count?: number
sort?: string
isLocal?: boolean
+ onLocalVideo?: boolean
search?: string
searchAccount?: string
searchVideo?: string
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,