diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-23 16:14:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-24 09:40:46 +0100 |
commit | a219c9100b3ce8774d454497d46be87465bf664e (patch) | |
tree | caa869e47919a9e23cc86dcece1100e239683b8c /server/controllers/activitypub/outbox.ts | |
parent | 7e98a7df7d04e19ba67163a86c7b876d78d76839 (diff) | |
download | PeerTube-a219c9100b3ce8774d454497d46be87465bf664e.tar.gz PeerTube-a219c9100b3ce8774d454497d46be87465bf664e.tar.zst PeerTube-a219c9100b3ce8774d454497d46be87465bf664e.zip |
Refactor AP context builder
Diffstat (limited to 'server/controllers/activitypub/outbox.ts')
-rw-r--r-- | server/controllers/activitypub/outbox.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/activitypub/outbox.ts b/server/controllers/activitypub/outbox.ts index 4e7a3afeb..f385c9927 100644 --- a/server/controllers/activitypub/outbox.ts +++ b/server/controllers/activitypub/outbox.ts | |||
@@ -45,7 +45,7 @@ async function outboxController (req: express.Request, res: express.Response) { | |||
45 | const handler = (start: number, count: number) => buildActivities(actor, start, count) | 45 | const handler = (start: number, count: number) => buildActivities(actor, start, count) |
46 | const json = await activityPubCollectionPagination(actorOutboxUrl, handler, req.query.page, req.query.size) | 46 | const json = await activityPubCollectionPagination(actorOutboxUrl, handler, req.query.page, req.query.size) |
47 | 47 | ||
48 | return activityPubResponse(activityPubContextify(json), res) | 48 | return activityPubResponse(activityPubContextify(json, 'Collection'), res) |
49 | } | 49 | } |
50 | 50 | ||
51 | async function buildActivities (actor: MActorLight, start: number, count: number) { | 51 | async function buildActivities (actor: MActorLight, start: number, count: number) { |