From 529ce60123b5083689f67c0d073484f1476e2813 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Mon, 9 Oct 2023 19:51:49 -0400 Subject: [PATCH] Fixed functionc all in followers --- README.md | 2 ++ api/activitypub/followers.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bfcd64585..1ee3239ed 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ This project (excluding post content itself) is released under the Apache Licens ** NEXT_PUBLIC_FIREBASE_PROJECT_ID ** ACTIVITYPUB_URL ** ACTIVITYPUB_USER +** ACTIVITYPUB_NAME +** ACTIVITYPUB_SUMMARY * 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 58cf9f83a..44a950d66 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()}/following?page=1`, "type": "OrderedCollectionPage", "totalItems": actors.docs.length, "orderedItems": actors.docs.map(item=>item.get("actor")) -- GitLab