From 2a3bcaa9aa33fe7376460f3b8c1cbaadfe487ca1 Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 1 Jun 2020 05:18:32 +0200 Subject: [PATCH] Fix retweet deduplication --- src/views/timeline.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/timeline.nim b/src/views/timeline.nim index 4457802..018dede 100644 --- a/src/views/timeline.nim +++ b/src/views/timeline.nim @@ -106,7 +106,7 @@ proc renderTimelineTweets*(results: Result[Tweet]; prefs: Prefs; path: string): for tweet in results.content: let rt = if tweet.retweet.isSome: get(tweet.retweet).id else: 0 - if tweet.id in threads or rt in retweets or + if tweet.id in threads or rt in retweets or tweet.id in retweets or tweet.pinned and prefs.hidePins: continue let thread = results.content.threadFilter(threads, tweet)