mirror of
https://github.com/zedeus/nitter.git
synced 2024-06-02 11:20:41 +00:00
Merge 8e762c592a
into b62d73dbd3
This commit is contained in:
commit
9bc1ed41ed
|
@ -277,6 +277,7 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class=""; index=0;
|
||||||
divClass = "thread-last " & class
|
divClass = "thread-last " & class
|
||||||
|
|
||||||
if not tweet.available:
|
if not tweet.available:
|
||||||
|
divClass &= " author-" & tweet.user.username
|
||||||
return buildHtml(tdiv(class=divClass & "unavailable timeline-item")):
|
return buildHtml(tdiv(class=divClass & "unavailable timeline-item")):
|
||||||
tdiv(class="unavailable-box"):
|
tdiv(class="unavailable-box"):
|
||||||
if tweet.tombstone.len > 0:
|
if tweet.tombstone.len > 0:
|
||||||
|
@ -298,6 +299,9 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class=""; index=0;
|
||||||
if tweet.retweet.isSome:
|
if tweet.retweet.isSome:
|
||||||
tweet = tweet.retweet.get
|
tweet = tweet.retweet.get
|
||||||
retweet = fullTweet.user.fullname
|
retweet = fullTweet.user.fullname
|
||||||
|
divClass &= " retweet-" & retweet
|
||||||
|
|
||||||
|
divClass &= " author-" & tweet.user.fullname
|
||||||
|
|
||||||
buildHtml(tdiv(class=("timeline-item " & divClass))):
|
buildHtml(tdiv(class=("timeline-item " & divClass))):
|
||||||
if not mainTweet:
|
if not mainTweet:
|
||||||
|
|
Loading…
Reference in a new issue