From e7c50853658fb4ae85d4d2e61d18487279496f9a Mon Sep 17 00:00:00 2001 From: Zed Date: Wed, 9 Oct 2019 16:30:38 +0200 Subject: [PATCH] Skip "message_me" cards --- src/parserutils.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parserutils.nim b/src/parserutils.nim index ebd85bc..b2b5bec 100644 --- a/src/parserutils.nim +++ b/src/parserutils.nim @@ -233,6 +233,9 @@ proc getTweetCard*(tweet: Tweet; node: XmlNode) = tweet.poll = some Poll() return + if "message_me" in cardType: + return + let cardDiv = node.select(".card2 > .js-macaw-cards-iframe-container") if cardDiv == nil: return