From 26853a83cad75a272f4ec821da6b6f00be4975f9 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 12 Nov 2025 13:03:50 -0700 Subject: [PATCH] filter promoted tweets --- src/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.nim b/src/parser.nim index a59051b..417996b 100644 --- a/src/parser.nim +++ b/src/parser.nim @@ -588,7 +588,7 @@ proc parseGraphConversation*(js: JsonNode; tweetId: string): Conversation = result.tweet = tweet else: result.before.content.add tweet - elif entryId.startsWith("conversationthread") or entryId.startswith("reply-mixer-conversation"): + elif (entryId.startsWith("conversationthread") or entryId.startswith("reply-mixer-conversation")) and "promoted-tweet" notin entryId: let (thread, self) = parseGraphThread(e) if self: result.after = thread