aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-comment.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-06-28 16:38:51 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-06-28 16:55:17 +0200
commitd473fd94ce2fd04bffc6cf6ee8f193db309c1d83 (patch)
tree4fb2570730d6ddfa52514e874c0ecb79ee8e944b /server/models/video/video-comment.ts
parent4c9e9d2ee9899ba48b86eda18d44638a78587ac5 (diff)
downloadPeerTube-d473fd94ce2fd04bffc6cf6ee8f193db309c1d83.tar.gz
PeerTube-d473fd94ce2fd04bffc6cf6ee8f193db309c1d83.tar.zst
PeerTube-d473fd94ce2fd04bffc6cf6ee8f193db309c1d83.zip
allow muting from the miniature options
initial implementation with a listing refresh except on search results
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r--server/models/video/video-comment.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts
index c465eb3e7..90625d987 100644
--- a/server/models/video/video-comment.ts
+++ b/server/models/video/video-comment.ts
@@ -444,11 +444,11 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
444 } 444 }
445 const accountWhere = accountId 445 const accountWhere = accountId
446 ? { 446 ? {
447 [Op.and]: { 447 [Op.and]: {
448 ...accountExclusion, 448 ...accountExclusion,
449 [Op.eq]: accountId 449 [Op.eq]: accountId
450 }
451 } 450 }
451 }
452 : accountExclusion 452 : accountExclusion
453 453
454 const videoChannelWhere = videoChannelId ? { id: videoChannelId } : undefined 454 const videoChannelWhere = videoChannelId ? { id: videoChannelId } : undefined