1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00
This commit is contained in:
Chocobozzz 2017-11-30 13:16:23 +01:00
parent 1b5b10d131
commit 98ec8b8e73
No known key found for this signature in database
GPG key ID: 583A612D890159BE
14 changed files with 31 additions and 23 deletions

View file

@ -38,15 +38,16 @@ async function outboxController (req: express.Request, res: express.Response, ne
const videoObject = video.toActivityPubObject()
// This is a shared video
const videoChannel = video.VideoChannel
if (video.VideoShares !== undefined && video.VideoShares.length !== 0) {
const addActivity = await addActivityData(video.url, video.VideoChannel.Account, video, video.VideoChannel.url, videoObject)
const addActivity = await addActivityData(video.url, videoChannel.Account, video, videoChannel.url, videoObject, undefined)
const url = getAnnounceActivityPubUrl(video.url, account)
const announceActivity = await announceActivityData(url, account, addActivity)
const announceActivity = await announceActivityData(url, account, addActivity, undefined)
activities.push(announceActivity)
} else {
const addActivity = await addActivityData(video.url, account, video, video.VideoChannel.url, videoObject)
const addActivity = await addActivityData(video.url, account, video, videoChannel.url, videoObject, undefined)
activities.push(addActivity)
}