mirror of
https://github.com/zedeus/nitter
synced 2024-11-22 09:57:16 +01:00
And another one
This commit is contained in:
parent
ad9083149c
commit
7edc5646fe
@ -301,7 +301,8 @@ proc parseGlobalObjects(js: JsonNode): GlobalObjects =
|
|||||||
|
|
||||||
proc parseStatus*(js: JsonNode): Tweet =
|
proc parseStatus*(js: JsonNode): Tweet =
|
||||||
with e, js{"errors"}:
|
with e, js{"errors"}:
|
||||||
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist, tweetNotAuthorized}:
|
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist,
|
||||||
|
tweetNotAuthorized, suspended}:
|
||||||
return
|
return
|
||||||
|
|
||||||
result = parseTweet(js, js{"card"})
|
result = parseTweet(js, js{"card"})
|
||||||
|
Loading…
Reference in New Issue
Block a user