aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/send/misc.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-27 10:26:52 +0200
committerChocobozzz <me@florianbigard.com>2018-03-27 11:11:15 +0200
commit73c0809326670867642f8a36f68d8564e0e406b5 (patch)
treeb2849106a252f8b2108318d90767dcb747d9dd6c /server/lib/activitypub/send/misc.ts
parent649f0334e0673a28d1674aa82de29326fa3cdb63 (diff)
downloadPeerTube-73c0809326670867642f8a36f68d8564e0e406b5.tar.gz
PeerTube-73c0809326670867642f8a36f68d8564e0e406b5.tar.zst
PeerTube-73c0809326670867642f8a36f68d8564e0e406b5.zip
Fix delete comment federation
Diffstat (limited to 'server/lib/activitypub/send/misc.ts')
-rw-r--r--server/lib/activitypub/send/misc.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/activitypub/send/misc.ts b/server/lib/activitypub/send/misc.ts
index b20fcf124..b2d968c9c 100644
--- a/server/lib/activitypub/send/misc.ts
+++ b/server/lib/activitypub/send/misc.ts
@@ -96,7 +96,7 @@ function getOriginVideoAudience (video: VideoModel, actorsInvolvedInVideo: Actor
96 } 96 }
97} 97}
98 98
99function getOriginVideoCommentAudience ( 99function getVideoCommentAudience (
100 videoComment: VideoCommentModel, 100 videoComment: VideoCommentModel,
101 threadParentComments: VideoCommentModel[], 101 threadParentComments: VideoCommentModel[],
102 actorsInvolvedInVideo: ActorModel[], 102 actorsInvolvedInVideo: ActorModel[],
@@ -160,7 +160,7 @@ function buildAudience (followerInboxUrls: string[], isPublic = true) {
160 return { to, cc } 160 return { to, cc }
161} 161}
162 162
163function audiencify (object: any, audience: ActivityAudience) { 163function audiencify <T> (object: T, audience: ActivityAudience) {
164 return Object.assign(object, audience) 164 return Object.assign(object, audience)
165} 165}
166 166
@@ -192,7 +192,7 @@ export {
192 getObjectFollowersAudience, 192 getObjectFollowersAudience,
193 forwardActivity, 193 forwardActivity,
194 audiencify, 194 audiencify,
195 getOriginVideoCommentAudience, 195 getVideoCommentAudience,
196 computeUris, 196 computeUris,
197 broadcastToActors 197 broadcastToActors
198} 198}