summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-14 13:54:13 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-14 13:54:13 +1000
commitf90b9729f90213f72ff18971cf6ebdffb8e362a3 (patch)
tree8ab99e2be8e7137e12b00b6fd883ec8c68350661
parentcleanup (diff)
downloadserver-f90b9729f90213f72ff18971cf6ebdffb8e362a3.tar.xz
whoops
-rw-r--r--src/activitypub/routes/channel/#channel_id/outbox.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/activitypub/routes/channel/#channel_id/outbox.ts b/src/activitypub/routes/channel/#channel_id/outbox.ts

index 8c2dcc6e..799be53f 100644 --- a/src/activitypub/routes/channel/#channel_id/outbox.ts +++ b/src/activitypub/routes/channel/#channel_id/outbox.ts
@@ -18,10 +18,10 @@ router.get("/", route({}), async (req, res) => { if (!page) { const ret: APOrderedCollection = { "@context": "https://www.w3.org/ns/activitystreams", - id: `https://${webDomain}/fed/users/${channel_id}/outbox`, + id: `https://${webDomain}/fed/channel/${channel_id}/outbox`, type: "OrderedCollection", - first: `https://${webDomain}/fed/users/${channel_id}/outbox?page=true`, - last: `https://${webDomain}/fed/users/${channel_id}/outbox?page=true&min_id=0`, + first: `https://${webDomain}/fed/channel/${channel_id}/outbox?page=true`, + last: `https://${webDomain}/fed/channel/${channel_id}/outbox?page=true&min_id=0`, }; return res.json(ret); } @@ -65,8 +65,8 @@ router.get("/", route({}), async (req, res) => { "@context": "https://www.w3.org/ns/activitystreams", id: `https://${webDomain}/fed/channel/${channel_id}/outbox?page=true`, type: "OrderedCollection", - first: `https://${webDomain}/fed/users/${channel_id}/outbox?page=true`, - last: `https://${webDomain}/fed/users/${channel_id}/outbox?page=true&min_id=0`, + first: `https://${webDomain}/fed/channel/${channel_id}/outbox?page=true`, + last: `https://${webDomain}/fed/channel/${channel_id}/outbox?page=true&min_id=0`, totalItems: await Message.count({ where: { channel_id } }), items: apMessages, };