Include profile picture in preview

This commit is contained in:
Zed 2019-10-22 09:28:54 +02:00
parent c25b780c03
commit 1769865964

View file

@ -63,7 +63,8 @@ proc showTimeline*(request: Request; query: Query; cfg: Config; rss: string): Fu
let (p, t, r) = await fetchSingleTimeline(names[0], after, agent, query)
if p.username.len == 0: return
let pHtml = renderProfile(p, t, r, prefs, getPath())
return renderMain(pHtml, request, cfg, pageTitle(p), pageDesc(p), rss=rss)
return renderMain(pHtml, request, cfg, pageTitle(p), pageDesc(p),
rss=rss, images = @[p.getUserpic("_200x200")])
else:
let
timeline = await fetchMultiTimeline(names, after, agent, query)