fix: withTwitter rss param

This commit is contained in:
DIYgod 2023-05-22 14:05:42 +01:00
parent c6de287cd3
commit 6c662ce8d8
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ export async function GET(request: Request) {
icon: "https://ipfs.4everland.xyz/ipfs/bafkreigxdnr5lvtjxqin5upquomrti2s77hlgtjy5zaeu43uhpny75rbga",
home_page_url: `${SITE_URL}/activities`,
feed_url: `${SITE_URL}/feed/latest`,
items: feed?.list?.map((post: ExpandedNote) => parsePost(post)),
items: feed?.list?.map((post: ExpandedNote) =>
parsePost(post, !!searchParams.get("withTwitter")),
),
}
const format = searchParams.get("format") === "xml" ? "xml" : "json"