]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add public to activitypub announces
authorChocobozzz <me@florianbigard.com>
Fri, 23 Mar 2018 12:27:21 +0000 (13:27 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 23 Mar 2018 12:27:21 +0000 (13:27 +0100)
server/lib/activitypub/send/misc.ts

index 607822d1623ec8a7f4642a68b4400ef46eb5c778..b20fcf124cb1230287601e746823d0cc84fb0718 100644 (file)
@@ -126,7 +126,7 @@ function getOriginVideoCommentAudience (
 
 function getObjectFollowersAudience (actorsInvolvedInObject: ActorModel[]) {
   return {
-    to: actorsInvolvedInObject.map(a => a.followersUrl),
+    to: [ ACTIVITY_PUB.PUBLIC ].concat(actorsInvolvedInObject.map(a => a.followersUrl)),
     cc: []
   }
 }