This commit is contained in:
Zed 2019-09-24 16:34:50 +02:00
parent 7e713e8fa5
commit b2e6153dba
1 changed files with 2 additions and 2 deletions

View File

@ -6,10 +6,10 @@ import tweet, timeline
proc renderMoreReplies(thread: Thread): VNode =
let num = if thread.more != -1: $thread.more & " " else: ""
let reply = if thread.more == 1: "reply" else: "replies"
let link = getLink(thread.content[0])
let link = getLink(thread.content[^1])
buildHtml(tdiv(class="timeline-item more-replies")):
if link.len > 0:
a(class="more-replies-text", href=getLink(thread.content[0])):
a(class="more-replies-text", href=link):
text $num & "more " & reply
else:
a(class="more-replies-text"):