Add yet another status error code

This commit is contained in:
Zed 2023-03-06 11:00:27 +01:00
parent 56420a28bd
commit ad9083149c
2 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,7 @@ proc parseGlobalObjects(js: JsonNode): GlobalObjects =
proc parseStatus*(js: JsonNode): Tweet =
with e, js{"errors"}:
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist}:
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist, tweetNotAuthorized}:
return
result = parseTweet(js, js{"card"})

View File

@ -44,6 +44,7 @@ type
invalidToken = 89
listIdOrSlug = 112
tweetNotFound = 144
tweetNotAuthorized = 179
forbidden = 200
badToken = 239
noCsrf = 353