Skip to content

Commit

Permalink
Update src/parser.nim
Browse files Browse the repository at this point in the history
Co-authored-by: Zed <[email protected]>
  • Loading branch information
HookedBehemoth and zedeus authored Mar 1, 2023
1 parent 3a5fade commit 368974c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,8 @@ 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)
with noteTweet, js{"note_tweet", "note_tweet_results", "result"}:
result.expandNoteTweetEntities(noteTweet)

if result.quote.isSome:
result.quote = some(parseGraphTweet(js{"quoted_status_result", "result"}))
Expand Down

0 comments on commit 368974c

Please sign in to comment.