1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Fetch remote AP objects if only id is specified

This commit is contained in:
Chocobozzz 2023-06-05 15:51:16 +02:00
parent f987425bd1
commit cefe22cf7c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
19 changed files with 760 additions and 661 deletions

View file

@ -63,6 +63,7 @@ async function buildActivities (actor: MActorLight, start: number, count: number
activities.push(announceActivity)
} else {
// FIXME: only use the video URL to reduce load. Breaks compat with PeerTube < 6.0.0
const videoObject = await video.toActivityPubObject()
const createActivity = buildCreateActivity(video.url, byActor, videoObject, createActivityAudience)