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;