From 04dbd07959e1a94fe5fae36144480bc20c476777 Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 1 Jul 2019 22:45:28 +0200 Subject: [PATCH] Fix retweet deduplication --- src/views/user.nimf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/user.nimf b/src/views/user.nimf index 270dcb4..17e20c2 100644 --- a/src/views/user.nimf +++ b/src/views/user.nimf @@ -51,7 +51,7 @@ #end proc # #proc renderTimeline*(timeline: Timeline; profile: Profile; beginning: bool): string = -#var retweets: seq[Tweet] +#var retweets: seq[string]
#if not beginning:
@@ -60,8 +60,8 @@ #end if # #for tweet in timeline.tweets: - #if tweet in retweets: continue - #elif tweet.retweetBy.isSome: retweets.add tweet + #if tweet.id in retweets: continue + #elif tweet.retweetBy.isSome: retweets.add tweet.id #end if ${renderTweet(tweet, "timeline-tweet")} #end for