mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-14 10:35:07 +00:00
Tor check bug fixes; recognise december blocking
This commit is contained in:
@@ -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) {
|
||||
|
||||
15
src/site/pug/blocked_december.pug
Normal file
15
src/site/pug/blocked_december.pug
Normal file
@@ -0,0 +1,15 @@
|
||||
include includes/error.pug
|
||||
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title= `Blocked | Bibliogram`
|
||||
include includes/head
|
||||
body.error-page
|
||||
+error(502, "Blocked by Instagram", true)
|
||||
| Instagram is refusing to provide data to this server.
|
||||
| This server will only be able to load the first page of timelines.
|
||||
| This error is permanent.
|
||||
| #[a(href="https://lists.sr.ht/~cadence/bibliogram-announce/%3C20201218014302.855fa8a816be2f19da2f56e3%40disroot.org%3E") See here for more information.]
|
||||
|
|
||||
|
|
||||
@@ -0,0 +1,8 @@
|
||||
.error-fragment
|
||||
.message Timeline loading blocked
|
||||
.explanation.
|
||||
Instagram is refusing to provide data to this server.
|
||||
This server will only be able to load the first page of timelines.
|
||||
This error is permanent.
|
||||
#[a(href="https://lists.sr.ht/~cadence/bibliogram-announce/%3C20201218014302.855fa8a816be2f19da2f56e3%40disroot.org%3E") See here for more information.]
|
||||
Or, you could try #[a(href="https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md") browsing Bibliogram on another instance.]
|
||||
Reference in New Issue
Block a user