mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-22 18:15:32 +00:00
Add yet another status error code
This commit is contained in:
parent
56420a28bd
commit
ad9083149c
|
@ -301,7 +301,7 @@ 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}:
|
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist, tweetNotAuthorized}:
|
||||||
return
|
return
|
||||||
|
|
||||||
result = parseTweet(js, js{"card"})
|
result = parseTweet(js, js{"card"})
|
||||||
|
|
|
@ -44,6 +44,7 @@ type
|
||||||
invalidToken = 89
|
invalidToken = 89
|
||||||
listIdOrSlug = 112
|
listIdOrSlug = 112
|
||||||
tweetNotFound = 144
|
tweetNotFound = 144
|
||||||
|
tweetNotAuthorized = 179
|
||||||
forbidden = 200
|
forbidden = 200
|
||||||
badToken = 239
|
badToken = 239
|
||||||
noCsrf = 353
|
noCsrf = 353
|
||||||
|
|
Loading…
Reference in a new issue