From b1ef505cffe075a4c988c9989a4e9d81e65a5266 Mon Sep 17 00:00:00 2001 From: Zed Date: Sun, 27 Nov 2022 01:57:32 +0100 Subject: [PATCH] Fix "Show this thread" for pinned threads --- src/parser.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parser.nim b/src/parser.nim index b731bdb..10186be 100644 --- a/src/parser.nim +++ b/src/parser.nim @@ -206,6 +206,10 @@ proc parseTweet(js: JsonNode): Tweet = ) ) + # fix for pinned threads + if result.hasThread and result.threadId == 0: + result.threadId = js{"self_thread", "id_str"}.getId + result.expandTweetEntities(js) if js{"is_quote_status"}.getBool: