mirror of
https://github.com/zedeus/nitter
synced 2024-11-22 01:45:22 +01:00
Update src/parser.nim
Co-authored-by: Zed <zedeus@pm.me>
This commit is contained in:
parent
3a5faded86
commit
368974c803
@ -385,9 +385,8 @@ proc parseGraphTweet(js: JsonNode): Tweet =
|
|||||||
result = parseTweet(js{"legacy"}, jsCard)
|
result = parseTweet(js{"legacy"}, jsCard)
|
||||||
result.user = parseUser(js{"core", "user_results", "result", "legacy"})
|
result.user = parseUser(js{"core", "user_results", "result", "legacy"})
|
||||||
|
|
||||||
var note_tweet = js{"note_tweet", "note_tweet_results", "result"}
|
with noteTweet, js{"note_tweet", "note_tweet_results", "result"}:
|
||||||
if note_tweet.kind != JNull:
|
result.expandNoteTweetEntities(noteTweet)
|
||||||
result.expandNoteTweetEntities(note_tweet)
|
|
||||||
|
|
||||||
if result.quote.isSome:
|
if result.quote.isSome:
|
||||||
result.quote = some(parseGraphTweet(js{"quoted_status_result", "result"}))
|
result.quote = some(parseGraphTweet(js{"quoted_status_result", "result"}))
|
||||||
|
Loading…
Reference in New Issue
Block a user