Make main tweet non-clickable

Fixes #67
This commit is contained in:
Zed 2019-10-08 20:54:16 +02:00
parent 6cf8b392df
commit edf5ead14f
1 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,9 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class="";
text "This tweet is unavailable"
buildHtml(tdiv(class=("timeline-item " & divClass))):
a(class="tweet-link", href=getLink(tweet))
if not mainTweet:
a(class="tweet-link", href=getLink(tweet))
tdiv(class="tweet-body"):
var views = ""
renderHeader(tweet)