From 0e74c1e9bdd680c4a166aaca46d8f0e9796ff8d6 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 12 Nov 2025 19:05:38 -0700 Subject: [PATCH] filter promoted tweets the sequel --- src/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.nim b/src/parser.nim index 417996b..f10fc7e 100644 --- a/src/parser.nim +++ b/src/parser.nim @@ -538,7 +538,7 @@ proc parseGraphThread(js: JsonNode): tuple[thread: Chain; self: bool] = let cursor = t{"item", "content", "value"} result.thread.cursor = cursor.getStr result.thread.hasMore = true - elif "tweet" in entryId: + elif "tweet" in entryId and "promoted-" notin entryId: let isLegacy = t{"item"}.hasKey("itemContent") (contentKey, resultKey) = if isLegacy: ("itemContent", "tweet_results")