Skip "message_me" cards

This commit is contained in:
Zed 2019-10-09 16:30:38 +02:00
parent 7b766b793b
commit e7c5085365
1 changed files with 3 additions and 0 deletions

View File

@ -233,6 +233,9 @@ proc getTweetCard*(tweet: Tweet; node: XmlNode) =
tweet.poll = some Poll() tweet.poll = some Poll()
return return
if "message_me" in cardType:
return
let cardDiv = node.select(".card2 > .js-macaw-cards-iframe-container") let cardDiv = node.select(".card2 > .js-macaw-cards-iframe-container")
if cardDiv == nil: return if cardDiv == nil: return