aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video-comment.ts6
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'
29import { MUserAccountId } from '@server/typings/models' 29import { MUserAccountId } from '@server/typings/models'
30import { VideoPrivacy } from '@shared/models'
30 31
31enum ScopeNames { 32enum 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 }