From cb4a4e06c818b4a7b9aaa8a52a7c9ba7b24b7e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 25 Oct 2024 14:59:20 +0200 Subject: [PATCH] Fix feeds --- handlers/user-atom-feed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/user-atom-feed.ts b/handlers/user-atom-feed.ts index 3ea7b46..a78553e 100644 --- a/handlers/user-atom-feed.ts +++ b/handlers/user-atom-feed.ts @@ -23,7 +23,7 @@ const userAtomFeedHandler = async function (ctx: Context) { if (profile.nip05) { const articleEvents = await fetchArticlesByAuthor(pubkey); const articles = articleEvents.map((a) => new Article(a)); - const atom = profileAtomFeed(profile, articles); + const atom = await profileAtomFeed(profile, articles); ctx.response.headers.set("Content-Type", "application/atom+xml"); ctx.response.body = atom;