mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-14 03:56:29 +00:00
fixed bug that caused some retweets to be rendered as truncated tweets starting with the text "RT @"
This commit is contained in:
parent
f7e878c126
commit
cd2ff54d31
1 changed files with 5 additions and 2 deletions
|
@ -230,8 +230,11 @@ proc parseTweet(js: JsonNode; jsCard: JsonNode = newJNull()): Tweet =
|
||||||
# graphql
|
# graphql
|
||||||
with rt, js{"retweeted_status_result", "result"}:
|
with rt, js{"retweeted_status_result", "result"}:
|
||||||
# needed due to weird edgecase where the actual tweet data isn't included
|
# needed due to weird edgecase where the actual tweet data isn't included
|
||||||
if "legacy" in rt:
|
var rt_tweet = rt
|
||||||
result.retweet = some parseGraphTweet(rt)
|
if "tweet" in rt:
|
||||||
|
rt_tweet = rt{"tweet"}
|
||||||
|
if "legacy" in rt_tweet:
|
||||||
|
result.retweet = some parseGraphTweet(rt_tweet)
|
||||||
return
|
return
|
||||||
|
|
||||||
if jsCard.kind != JNull:
|
if jsCard.kind != JNull:
|
||||||
|
|
Loading…
Reference in a new issue