fix images in embeds
This commit is contained in:
parent
5e2d126aea
commit
3208e7d25f
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue