Fix feeds

This commit is contained in:
Râu Cao 2024-10-25 14:59:20 +02:00
parent 5f5f024ae7
commit cb4a4e06c8
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -23,7 +23,7 @@ const userAtomFeedHandler = async function (ctx: Context) {
if (profile.nip05) { if (profile.nip05) {
const articleEvents = await fetchArticlesByAuthor(pubkey); const articleEvents = await fetchArticlesByAuthor(pubkey);
const articles = articleEvents.map((a) => new Article(a)); 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.headers.set("Content-Type", "application/atom+xml");
ctx.response.body = atom; ctx.response.body = atom;