diff --git a/CHANGELOG.md b/CHANGELOG.md index 41797c7658f4c6cbf698343a85fa82ae46107c2c..a55283a75b6168eab8efd2765cf09ca38fd091f7 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 44a950d668419a7cc353a8eaabce5500a32213a7..2c647a61b214d679264fcd72eb9a529a770f42b0 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"))