소스 검색

Proxy attribution avatar

Zed 6 년 전
부모
커밋
8bc6381f4d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/tweet.nim

+ 2 - 1
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 =