Skip "message_me" cards

This commit is contained in:
Zed 2019-10-09 16:30:38 +02:00
parent 7b766b793b
commit e7c5085365

View file

@ -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