aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/audience.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-03-20 14:43:12 +0100
committerChocobozzz <me@florianbigard.com>2020-03-20 14:43:12 +0100
commit6cb556449064278bdcb1a54a7b980c2e7bc735f0 (patch)
treea3d72e90cfc6074a00cd04d5197dded12260b69e /server/lib/activitypub/audience.ts
parent5db4545cd2af2298ef6514dde2c36edc98ef5e33 (diff)
downloadPeerTube-6cb556449064278bdcb1a54a7b980c2e7bc735f0.tar.gz
PeerTube-6cb556449064278bdcb1a54a7b980c2e7bc735f0.tar.zst
PeerTube-6cb556449064278bdcb1a54a7b980c2e7bc735f0.zip
Fix add comment in threads with deleted comments
Diffstat (limited to 'server/lib/activitypub/audience.ts')
-rw-r--r--server/lib/activitypub/audience.ts2
1 files changed, 2 insertions, 0 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