Preload profile/tweet images, banners, and icons

This commit is contained in:
Zed 2021-01-08 00:50:10 +01:00
commit ed7ecf7c8d
3 changed files with 20 additions and 5 deletions

View file

@ -15,7 +15,7 @@ template respList*(list, timeline, vnode: typed) =
html = renderList(vnode, timeline.query, list)
rss = "/$1/lists/$2/rss" % [@"name", @"list"]
resp renderMain(html, request, cfg, prefs, rss=rss)
resp renderMain(html, request, cfg, prefs, rss=rss, banner=list.banner)
proc createListRouter*(cfg: Config) =
router list: