diff options
Diffstat (limited to 'server/controllers/activitypub/outbox.ts')
-rw-r--r-- | server/controllers/activitypub/outbox.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/controllers/activitypub/outbox.ts b/server/controllers/activitypub/outbox.ts index e2c4e9b1e..5a2d43f3d 100644 --- a/server/controllers/activitypub/outbox.ts +++ b/server/controllers/activitypub/outbox.ts | |||
@@ -38,15 +38,16 @@ async function outboxController (req: express.Request, res: express.Response, ne | |||
38 | const videoObject = video.toActivityPubObject() | 38 | const videoObject = video.toActivityPubObject() |
39 | 39 | ||
40 | // This is a shared video | 40 | // This is a shared video |
41 | const videoChannel = video.VideoChannel | ||
41 | if (video.VideoShares !== undefined && video.VideoShares.length !== 0) { | 42 | if (video.VideoShares !== undefined && video.VideoShares.length !== 0) { |
42 | const addActivity = await addActivityData(video.url, video.VideoChannel.Account, video, video.VideoChannel.url, videoObject) | 43 | const addActivity = await addActivityData(video.url, videoChannel.Account, video, videoChannel.url, videoObject, undefined) |
43 | 44 | ||
44 | const url = getAnnounceActivityPubUrl(video.url, account) | 45 | const url = getAnnounceActivityPubUrl(video.url, account) |
45 | const announceActivity = await announceActivityData(url, account, addActivity) | 46 | const announceActivity = await announceActivityData(url, account, addActivity, undefined) |
46 | 47 | ||
47 | activities.push(announceActivity) | 48 | activities.push(announceActivity) |
48 | } else { | 49 | } else { |
49 | const addActivity = await addActivityData(video.url, account, video, video.VideoChannel.url, videoObject) | 50 | const addActivity = await addActivityData(video.url, account, video, videoChannel.url, videoObject, undefined) |
50 | 51 | ||
51 | activities.push(addActivity) | 52 | activities.push(addActivity) |
52 | } | 53 | } |