diff options
Diffstat (limited to 'server/lib/activitypub/send/shared/send-utils.ts')
-rw-r--r-- | server/lib/activitypub/send/shared/send-utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/send/shared/send-utils.ts b/server/lib/activitypub/send/shared/send-utils.ts index dbcde91ee..72368c762 100644 --- a/server/lib/activitypub/send/shared/send-utils.ts +++ b/server/lib/activitypub/send/shared/send-utils.ts | |||
@@ -19,13 +19,13 @@ async function sendVideoRelatedActivity (activityBuilder: (audience: ActivityAud | |||
19 | }) { | 19 | }) { |
20 | const { byActor, video, transaction, contextType } = options | 20 | const { byActor, video, transaction, contextType } = options |
21 | 21 | ||
22 | const actorsInvolvedInVideo = await getActorsInvolvedInVideo(video, transaction) | ||
23 | |||
24 | // Send to origin | 22 | // Send to origin |
25 | if (video.isOwned() === false) { | 23 | if (video.isOwned() === false) { |
26 | return sendVideoActivityToOrigin(activityBuilder, options) | 24 | return sendVideoActivityToOrigin(activityBuilder, options) |
27 | } | 25 | } |
28 | 26 | ||
27 | const actorsInvolvedInVideo = await getActorsInvolvedInVideo(video, transaction) | ||
28 | |||
29 | // Send to followers | 29 | // Send to followers |
30 | const audience = getAudienceFromFollowersOf(actorsInvolvedInVideo) | 30 | const audience = getAudienceFromFollowersOf(actorsInvolvedInVideo) |
31 | const activity = activityBuilder(audience) | 31 | const activity = activityBuilder(audience) |