From: Chocobozzz Date: Tue, 21 Apr 2020 07:27:42 +0000 (+0200) Subject: Do not display deleted comments in RSS feed X-Git-Tag: v2.2.0-rc.1~168 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=193272b8a0ddf54396315af8dc0c069d8f20c18e;p=oweals%2Fpeertube.git Do not display deleted comments in RSS feed --- 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' ],