]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Do not display deleted comments in RSS feed
authorChocobozzz <me@florianbigard.com>
Tue, 21 Apr 2020 07:27:42 +0000 (09:27 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 21 Apr 2020 07:27:42 +0000 (09:27 +0200)
server/models/video/video-comment.ts

index aedd7a3a95c9ebd506388e00790f9924eff8aec4..7cdff8c2cbefb6ba6d162d4b89cf83d6c1be8e31 100644 (file)
@@ -386,7 +386,9 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
       order: [ [ 'createdAt', 'DESC' ] ] as Order,
       offset: start,
       limit: count,
-      where: {},
+      where: {
+        deletedAt: null
+      },
       include: [
         {
           attributes: [ 'name', 'uuid' ],