This commit is contained in:
Santi 2023-11-01 16:18:43 +00:00 committed by GitHub
commit 9bc1ed41ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -277,6 +277,7 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class=""; index=0;
divClass = "thread-last " & class
if not tweet.available:
divClass &= " author-" & tweet.user.username
return buildHtml(tdiv(class=divClass & "unavailable timeline-item")):
tdiv(class="unavailable-box"):
if tweet.tombstone.len > 0:
@ -298,6 +299,9 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class=""; index=0;
if tweet.retweet.isSome:
tweet = tweet.retweet.get
retweet = fullTweet.user.fullname
divClass &= " retweet-" & retweet
divClass &= " author-" & tweet.user.fullname
buildHtml(tdiv(class=("timeline-item " & divClass))):
if not mainTweet: