1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Refactor AP context builder

This commit is contained in:
Chocobozzz 2022-03-23 16:14:33 +01:00
parent 7e98a7df7d
commit a219c9100b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
28 changed files with 515 additions and 287 deletions

View file

@ -45,7 +45,7 @@ async function outboxController (req: express.Request, res: express.Response) {
const handler = (start: number, count: number) => buildActivities(actor, start, count)
const json = await activityPubCollectionPagination(actorOutboxUrl, handler, req.query.page, req.query.size)
return activityPubResponse(activityPubContextify(json), res)
return activityPubResponse(activityPubContextify(json, 'Collection'), res)
}
async function buildActivities (actor: MActorLight, start: number, count: number) {