aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-21 09:27:42 +0200
committerChocobozzz <me@florianbigard.com>2020-04-21 09:27:42 +0200
commit193272b8a0ddf54396315af8dc0c069d8f20c18e (patch)
tree5be74d50dcdb4f7fa7618a70c76aab5c28bad378
parent68b6fd21b19ef17274e84dbb21ad7cfb7bc6c36a (diff)
downloadPeerTube-193272b8a0ddf54396315af8dc0c069d8f20c18e.tar.gz
PeerTube-193272b8a0ddf54396315af8dc0c069d8f20c18e.tar.zst
PeerTube-193272b8a0ddf54396315af8dc0c069d8f20c18e.zip
Do not display deleted comments in RSS feed
-rw-r--r--server/models/video/video-comment.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts
index aedd7a3a9..7cdff8c2c 100644
--- a/server/models/video/video-comment.ts
+++ b/server/models/video/video-comment.ts
@@ -386,7 +386,9 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
386 order: [ [ 'createdAt', 'DESC' ] ] as Order, 386 order: [ [ 'createdAt', 'DESC' ] ] as Order,
387 offset: start, 387 offset: start,
388 limit: count, 388 limit: count,
389 where: {}, 389 where: {
390 deletedAt: null
391 },
390 include: [ 392 include: [
391 { 393 {
392 attributes: [ 'name', 'uuid' ], 394 attributes: [ 'name', 'uuid' ],