filter promoted tweets

This commit is contained in:
Cynthia Foxwell 2025-11-12 13:03:50 -07:00
parent bed4014d4e
commit 26853a83ca
No known key found for this signature in database

View File

@ -588,7 +588,7 @@ proc parseGraphConversation*(js: JsonNode; tweetId: string): Conversation =
result.tweet = tweet result.tweet = tweet
else: else:
result.before.content.add tweet 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) let (thread, self) = parseGraphThread(e)
if self: if self:
result.after = thread result.after = thread