mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
parse recently added long tweets
This commit is contained in:
parent
756a39bdd2
commit
3a5faded86
3 changed files with 47 additions and 1 deletions
|
|
@ -385,6 +385,10 @@ proc parseGraphTweet(js: JsonNode): Tweet =
|
|||
result = parseTweet(js{"legacy"}, jsCard)
|
||||
result.user = parseUser(js{"core", "user_results", "result", "legacy"})
|
||||
|
||||
var note_tweet = js{"note_tweet", "note_tweet_results", "result"}
|
||||
if note_tweet.kind != JNull:
|
||||
result.expandNoteTweetEntities(note_tweet)
|
||||
|
||||
if result.quote.isSome:
|
||||
result.quote = some(parseGraphTweet(js{"quoted_status_result", "result"}))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue