Refactor tweet stats

This commit is contained in:
Zed
2019-07-01 23:48:25 +02:00
parent c60280415e
commit 3cedcf29ea
4 changed files with 18 additions and 17 deletions

View File

@@ -63,11 +63,11 @@ proc parseTweet*(node: XmlNode): Tweet =
time: getTimestamp(tweet),
shortTime: getShortTime(tweet),
profile: parseTweetProfile(tweet),
stats: parseTweetStats(tweet),
pinned: "pinned" in tweet.attr("class"),
available: true
)
result.getTweetStats(tweet)
result.getTweetMedia(tweet)
result.getTweetCards(tweet)