mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Minor retweet refactor
This commit is contained in:
parent
9b07199901
commit
c60280415e
4 changed files with 12 additions and 7 deletions
|
|
@ -73,8 +73,10 @@ proc parseTweet*(node: XmlNode): Tweet =
|
|||
|
||||
let by = tweet.selectText(".js-retweet-text > a > b")
|
||||
if by.len > 0:
|
||||
result.retweetBy = some(by.stripText())
|
||||
result.retweetId = some(tweet.attr("data-retweet-id"))
|
||||
result.retweet = some(Retweet(
|
||||
by: stripText(by),
|
||||
id: tweet.attr("data-retweet-id")
|
||||
))
|
||||
|
||||
let quote = tweet.select(".QuoteTweet-innerContainer")
|
||||
if quote != nil:
|
||||
|
|
|
|||
Loading…
Reference in a new issue