Skip to content

Commit

Permalink
And another one
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Mar 6, 2023
1 parent ad90831 commit 7edc564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ proc parseGlobalObjects(js: JsonNode): GlobalObjects =

proc parseStatus*(js: JsonNode): Tweet =
with e, js{"errors"}:
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist, tweetNotAuthorized}:
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist,
tweetNotAuthorized, suspended}:
return

result = parseTweet(js, js{"card"})
Expand Down

0 comments on commit 7edc564

Please sign in to comment.