mirror of
https://github.com/zedeus/nitter.git
synced 2024-06-10 09:09:21 +00:00
Fix odd edgecase with broken retweets
This commit is contained in:
parent
64741de639
commit
34363a2b99
|
@ -229,8 +229,10 @@ proc parseTweet(js: JsonNode; jsCard: JsonNode = newJNull()): Tweet =
|
|||
|
||||
# graphql
|
||||
with rt, js{"retweeted_status_result", "result"}:
|
||||
result.retweet = some parseGraphTweet(rt)
|
||||
return
|
||||
# needed due to weird edgecase where the actual tweet data isn't included
|
||||
if "legacy" in rt:
|
||||
result.retweet = some parseGraphTweet(rt)
|
||||
return
|
||||
|
||||
if jsCard.kind != JNull:
|
||||
let name = jsCard{"name"}.getStr
|
||||
|
|
Loading…
Reference in a new issue