From f803bd735662c5641b231a11e85b1d8e084f8858 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Wed, 11 Oct 2023 13:42:19 -0400 Subject: [PATCH] Fixed bad id in followers endpoint --- CHANGELOG.md | 2 ++ api/activitypub/followers.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41797c765..a55283a75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 1.0.2 +* Fixed bad id in `/followers` ActivityPub endpoint. + ## 1.0.1 * Summary text in ActivityPosts did not properly render new lines and other diff --git a/api/activitypub/followers.ts b/api/activitypub/followers.ts index 44a950d66..2c647a61b 100644 --- a/api/activitypub/followers.ts +++ b/api/activitypub/followers.ts @@ -20,7 +20,7 @@ export default async function (req: VercelRequest, res: VercelResponse) { const output = { "@context": "https://www.w3.org/ns/activitystreams", - "id": `${process.env.ACTIVITYPUB_URL}users/${process.env.ACTIVITYPUB_USER.toLowerCase()}/following?page=1`, + "id": `${process.env.ACTIVITYPUB_URL}users/${process.env.ACTIVITYPUB_USER.toLowerCase()}/followers`, "type": "OrderedCollectionPage", "totalItems": actors.docs.length, "orderedItems": actors.docs.map(item=>item.get("actor")) -- GitLab