diff options
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r-- | server/models/video/video-comment.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index b33c33d5e..aedd7a3a9 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -27,6 +27,7 @@ import { | |||
27 | MCommentOwnerVideoReply | 27 | MCommentOwnerVideoReply |
28 | } from '../../typings/models/video' | 28 | } from '../../typings/models/video' |
29 | import { MUserAccountId } from '@server/typings/models' | 29 | import { MUserAccountId } from '@server/typings/models' |
30 | import { VideoPrivacy } from '@shared/models' | ||
30 | 31 | ||
31 | enum ScopeNames { | 32 | enum ScopeNames { |
32 | WITH_ACCOUNT = 'WITH_ACCOUNT', | 33 | WITH_ACCOUNT = 'WITH_ACCOUNT', |
@@ -390,7 +391,10 @@ export class VideoCommentModel extends Model<VideoCommentModel> { | |||
390 | { | 391 | { |
391 | attributes: [ 'name', 'uuid' ], | 392 | attributes: [ 'name', 'uuid' ], |
392 | model: VideoModel.unscoped(), | 393 | model: VideoModel.unscoped(), |
393 | required: true | 394 | required: true, |
395 | where: { | ||
396 | privacy: VideoPrivacy.PUBLIC | ||
397 | } | ||
394 | } | 398 | } |
395 | ] | 399 | ] |
396 | } | 400 | } |