Fix retweet deduplication
This commit is contained in:
parent
baa734b32e
commit
04dbd07959
1 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@
|
||||||
#end proc
|
#end proc
|
||||||
#
|
#
|
||||||
#proc renderTimeline*(timeline: Timeline; profile: Profile; beginning: bool): string =
|
#proc renderTimeline*(timeline: Timeline; profile: Profile; beginning: bool): string =
|
||||||
#var retweets: seq[Tweet]
|
#var retweets: seq[string]
|
||||||
<div id="tweets">
|
<div id="tweets">
|
||||||
#if not beginning:
|
#if not beginning:
|
||||||
<div class="show-more status-el">
|
<div class="show-more status-el">
|
||||||
|
@ -60,8 +60,8 @@
|
||||||
#end if
|
#end if
|
||||||
#
|
#
|
||||||
#for tweet in timeline.tweets:
|
#for tweet in timeline.tweets:
|
||||||
#if tweet in retweets: continue
|
#if tweet.id in retweets: continue
|
||||||
#elif tweet.retweetBy.isSome: retweets.add tweet
|
#elif tweet.retweetBy.isSome: retweets.add tweet.id
|
||||||
#end if
|
#end if
|
||||||
${renderTweet(tweet, "timeline-tweet")}
|
${renderTweet(tweet, "timeline-tweet")}
|
||||||
#end for
|
#end for
|
||||||
|
|
Loading…
Reference in a new issue