]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/send/send-create.ts
Fix add comment in threads with deleted comments
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / send / send-create.ts
index 8bdcf6417cf64f12e42d17f96b6eea21bb179a0d..e2fa061e882f033dd4abc7306221d0af63a63825 100644 (file)
@@ -80,7 +80,8 @@ async function sendCreateVideoComment (comment: MCommentOwnerVideo, t: Transacti
   // Add the actor that commented too
   actorsInvolvedInComment.push(byActor)
 
-  const parentsCommentActors = threadParentComments.map(c => c.Account.Actor)
+  const parentsCommentActors = threadParentComments.filter(c => !c.isDeleted())
+                                                   .map(c => c.Account.Actor)
 
   let audience: ActivityAudience
   if (isOrigin) {