diff --git a/handlers/user-atom-feed.ts b/handlers/user-atom-feed.ts index 95fb3b6..ec345ca 100644 --- a/handlers/user-atom-feed.ts +++ b/handlers/user-atom-feed.ts @@ -4,6 +4,7 @@ import { fetchArticlesByAuthor, fetchProfileEvent } from "../nostr.ts"; import { profileAtomFeed } from "../feeds.ts"; import Profile from "../models/profile.ts"; import { notFoundHandler } from "../handlers/errors.ts"; +import { generateOgProfileImage } from "../magick.ts"; const userAtomFeedHandler = async function (ctx: Context) { const username = ctx.state.username; @@ -20,6 +21,7 @@ const userAtomFeedHandler = async function (ctx: Context) { const profile = new Profile(profileEvent, username); if (profile.nip05) { + await generateOgProfileImage(profile); const articles = await fetchArticlesByAuthor(pubkey, 10); const atom = await profileAtomFeed(profile, articles);