Fix tweet tags being shown as unavailable tweets

This commit is contained in:
Zed
2019-06-27 21:48:59 +02:00
parent e2039ec81c
commit 9dc4b240e7
3 changed files with 8 additions and 7 deletions

View File

@@ -83,7 +83,9 @@ proc parseTweet*(node: XmlNode): Tweet =
proc parseTweets*(node: XmlNode): Tweets =
if node == nil or node.kind == xnText: return
node.selectAll(".stream-item").map(parseTweet)
for n in node.selectAll(".stream-item"):
if "account" notin n.child("div").attr("class"):
result.add parseTweet(n)
proc parseConversation*(node: XmlNode): Conversation =
result = Conversation(