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

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)