Include profile picture in preview
This commit is contained in:
parent
c25b780c03
commit
1769865964
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue