aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/lib/activitypub/audience.ts2
-rw-r--r--server/lib/activitypub/send/send-create.ts3
2 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/activitypub/audience.ts b/server/lib/activitypub/audience.ts
index 9933ae2b5..551d04ae3 100644
--- a/server/lib/activitypub/audience.ts
+++ b/server/lib/activitypub/audience.ts
@@ -32,6 +32,8 @@ function getVideoCommentAudience (
32 32
33 // Send to actors we reply to 33 // Send to actors we reply to
34 for (const parentComment of threadParentComments) { 34 for (const parentComment of threadParentComments) {
35 if (parentComment.isDeleted()) continue
36
35 cc.push(parentComment.Account.Actor.url) 37 cc.push(parentComment.Account.Actor.url)
36 } 38 }
37 39
diff --git a/server/lib/activitypub/send/send-create.ts b/server/lib/activitypub/send/send-create.ts
index 8bdcf6417..e2fa061e8 100644
--- a/server/lib/activitypub/send/send-create.ts
+++ b/server/lib/activitypub/send/send-create.ts
@@ -80,7 +80,8 @@ async function sendCreateVideoComment (comment: MCommentOwnerVideo, t: Transacti
80 // Add the actor that commented too 80 // Add the actor that commented too
81 actorsInvolvedInComment.push(byActor) 81 actorsInvolvedInComment.push(byActor)
82 82
83 const parentsCommentActors = threadParentComments.map(c => c.Account.Actor) 83 const parentsCommentActors = threadParentComments.filter(c => !c.isDeleted())
84 .map(c => c.Account.Actor)
84 85
85 let audience: ActivityAudience 86 let audience: ActivityAudience
86 if (isOrigin) { 87 if (isOrigin) {