Fix loading more tweets when last one is a retweet

This commit is contained in:
Zed 2019-06-24 04:41:23 +02:00
commit 8f7c61eab6
3 changed files with 6 additions and 3 deletions

View file

@ -70,6 +70,7 @@ proc parseTweet*(tweet: XmlNode): Tweet =
let by = tweet.selectText(".js-retweet-text > a > b")
if by.len > 0:
result.retweetBy = some(by)
result.retweetId = some(tweet.getAttr("data-retweet-id"))
proc parseTweets*(node: XmlNode): Tweets =
if node.isNil: return