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:
parent
7e98a7df7d
commit
a219c9100b
28 changed files with 515 additions and 287 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue