diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-14 11:18:49 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 10:51:09 +0100 |
commit | fadf619ad61a016c1c7fc53de5a8f398a4f77519 (patch) | |
tree | bd449b9fe2353d812f4cf57f6dd03c2221b25607 /server/controllers/activitypub | |
parent | 7efe153b0bc23e596d5019b9fb3e3e32b6cfeccd (diff) | |
download | PeerTube-fadf619ad61a016c1c7fc53de5a8f398a4f77519.tar.gz PeerTube-fadf619ad61a016c1c7fc53de5a8f398a4f77519.tar.zst PeerTube-fadf619ad61a016c1c7fc53de5a8f398a4f77519.zip |
Save
Diffstat (limited to 'server/controllers/activitypub')
-rw-r--r-- | server/controllers/activitypub/outbox.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/activitypub/outbox.ts b/server/controllers/activitypub/outbox.ts index dc6b72a6e..6ed8a3454 100644 --- a/server/controllers/activitypub/outbox.ts +++ b/server/controllers/activitypub/outbox.ts | |||
@@ -40,14 +40,14 @@ async function outboxController (req: express.Request, res: express.Response, ne | |||
40 | // This is a shared video | 40 | // This is a shared video |
41 | const videoChannel = video.VideoChannel | 41 | const videoChannel = video.VideoChannel |
42 | if (video.VideoShares !== undefined && video.VideoShares.length !== 0) { | 42 | if (video.VideoShares !== undefined && video.VideoShares.length !== 0) { |
43 | const addActivity = await addActivityData(video.url, videoChannel.Account, video, videoChannel.url, videoObject, undefined) | 43 | const addActivity = await addActivityData(video.url, videoChannel.Account, video, videoChannel.Actor.url, videoObject, undefined) |
44 | 44 | ||
45 | const url = getAnnounceActivityPubUrl(video.url, account) | 45 | const url = getAnnounceActivityPubUrl(video.url, account) |
46 | const announceActivity = await announceActivityData(url, account, addActivity, undefined) | 46 | const announceActivity = await announceActivityData(url, account, addActivity, undefined) |
47 | 47 | ||
48 | activities.push(announceActivity) | 48 | activities.push(announceActivity) |
49 | } else { | 49 | } else { |
50 | const addActivity = await addActivityData(video.url, account, video, videoChannel.url, videoObject, undefined) | 50 | const addActivity = await addActivityData(video.url, account, video, videoChannel.Actor.url, videoObject, undefined) |
51 | 51 | ||
52 | activities.push(addActivity) | 52 | activities.push(addActivity) |
53 | } | 53 | } |