fix images in embeds

This commit is contained in:
Cynthia Foxwell 2025-02-11 17:02:29 -07:00
parent 5e2d126aea
commit 3208e7d25f
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -128,10 +128,9 @@ proc renderHead*(prefs: Prefs; cfg: Config; req: Request; titleText=""; desc="";
meta(property="og:image", content=image)
if video.len == 0:
meta(property="twitter:image:src", content=image)
#if rss.len > 0:
#meta(property="twitter:card", content="summary")
elif video.len == 0:
meta(property="twitter:card", content="summary_large_image")
else:
meta(property="twitter:card", content="summary")
elif avatar.len > 0:
let avatarUrl = getUrlPrefix(cfg) & getPicUrl(avatar)
meta(property="og:image", content=avatarUrl)