diff --git a/README.md b/README.md index f6a724b1c751c073ea0a08a977c4f249dcb678d5..bfcd645855db965e67de335e317cbe324406a18e 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,8 @@ This project (excluding post content itself) is released under the Apache Licens ** FIREBASE_PRIVATE_KEY ** FIREBASE_CLIENT_EMAIL ** NEXT_PUBLIC_FIREBASE_PROJECT_ID +** ACTIVITYPUB_URL +** ACTIVITYPUB_USER * Modify /layouts/partials/top_list_* to represent the section titles you want to use. * Update package.json ** Update name field diff --git a/api/activitypub/followers.ts b/api/activitypub/followers.ts index 05c192d01de08d22e656310947783a809785e8fa..c81981c6d4d1d1b0257109e54631d9d9749bcd7e 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": "https://qoto.org/users/flear/following?page=1", + "id": `${process.env.ACTIVITYPUB_URL}/users/${process.env.ACTIVITYPUB_USER.toLowerCase}/following?page=1`, "type": "OrderedCollectionPage", "totalItems": actors.docs.length, "orderedItems": actors.docs.map(item=>item.get("actor"))