1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-29 15:51:35 +00:00

Tor check bug fixes; recognise december blocking

This commit is contained in:
Cadence Ember 2021-01-19 01:45:22 +13:00
parent df61faeb3b
commit 934e6baf06
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
6 changed files with 41 additions and 9 deletions

View file

@ -154,6 +154,8 @@ module.exports = [
lang
})
}
} else if (error === constants.symbols.INSTAGRAM_BLOCK_TYPE_DECEMBER) {
return render(503, "pug/blocked_december.pug")
} else if (error === constants.symbols.RATE_LIMITED) {
return render(503, "pug/blocked_graphql.pug")
} else if (error === constants.symbols.extractor_results.AGE_RESTRICTED) {
@ -219,6 +221,8 @@ module.exports = [
message: "This user doesn't exist.",
withInstancesLink: false
})
} else if (error === constants.symbols.INSTAGRAM_BLOCK_TYPE_DECEMBER) {
return render(502, "pug/fragments/timeline_loading_blocked_december.pug")
} else if (error === constants.symbols.INSTAGRAM_DEMANDS_LOGIN || error === constants.symbols.RATE_LIMITED) {
return render(503, "pug/fragments/timeline_loading_blocked.pug")
} else if (error === constants.symbols.QUOTA_REACHED) {