Store and serve local profile icons for user pages

Shown e.g. in browser tabs and as RSS icon
This commit is contained in:
2024-12-03 18:35:39 +01:00
parent 7f975f2dbb
commit f4d1ba897b
6 changed files with 69 additions and 17 deletions

View File

@@ -27,7 +27,7 @@ const userEventHandler = async function (ctx: Context) {
const article = new Article(articleEvent);
const profile = new Profile(profileEvent, username);
const html = await articleHtml(article, profile);
generateOgProfileImage(profile);
await generateOgProfileImage(profile);
ctx.response.body = html;
} else {

View File

@@ -21,7 +21,7 @@ const userProfileHandler = async function (ctx: Context) {
const profile = new Profile(profileEvent, username);
const articles = await fetchArticlesByAuthor(pubkey, 210);
const html = await profilePageHtml(profile, articles);
generateOgProfileImage(profile);
await generateOgProfileImage(profile);
ctx.response.body = html;
} else {