From 193272b8a0ddf54396315af8dc0c069d8f20c18e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 21 Apr 2020 09:27:42 +0200 Subject: [PATCH] Do not display deleted comments in RSS feed --- server/models/video/video-comment.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { order: [ [ 'createdAt', 'DESC' ] ] as Order, offset: start, limit: count, - where: {}, + where: { + deletedAt: null + }, include: [ { attributes: [ 'name', 'uuid' ], -- 2.25.1