From 8bc6381f4d2b1868786d5cac6601836dea52f020 Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 28 Oct 2019 16:27:27 +0100 Subject: [PATCH] Proxy attribution avatar --- src/views/tweet.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/tweet.nim b/src/views/tweet.nim index 3e84413..df021f9 100644 --- a/src/views/tweet.nim +++ b/src/views/tweet.nim @@ -189,8 +189,9 @@ proc renderReply(quote: Quote): VNode = a(href=("/" & u)): text "@" & u proc renderAttribution(profile: Profile): VNode = + let avatarUrl = getPicUrl(profile.getUserpic("_200x200")) buildHtml(a(class="attribution", href=("/" & profile.username))): - img(class="avatar", width="20", height="20", src=profile.getUserpic("_200x200")) + img(class="avatar", width="20", height="20", src=avatarUrl) strong: text profile.fullname proc renderQuoteMedia(quote: Quote): VNode =