mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 16:17:29 +00:00
Write new timeline loading blocked notice
This commit is contained in:
parent
8f0890f0ad
commit
5ef9af5f08
@ -160,15 +160,7 @@ module.exports = [
|
|||||||
withInstancesLink: false
|
withInstancesLink: false
|
||||||
})
|
})
|
||||||
} else if (error === constants.symbols.INSTAGRAM_DEMANDS_LOGIN || error === constants.symbols.RATE_LIMITED) {
|
} else if (error === constants.symbols.INSTAGRAM_DEMANDS_LOGIN || error === constants.symbols.RATE_LIMITED) {
|
||||||
return render(503, "pug/friendlyerror.pug", {
|
return render(503, "pug/fragments/timeline_loading_blocked.pug")
|
||||||
statusCode: 503,
|
|
||||||
title: "Timeline loading blocked",
|
|
||||||
message: "Timeline loading blocked",
|
|
||||||
explanation:
|
|
||||||
"Instagram blocked this server for requesting too many timeline pages."
|
|
||||||
+"\nThis block is not permanent, and will expire soon."
|
|
||||||
+"\nPlease wait a few minutes before trying again."
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
7
src/site/pug/fragments/timeline_loading_blocked.pug
Normal file
7
src/site/pug/fragments/timeline_loading_blocked.pug
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.error-fragment
|
||||||
|
.message Timeline loading blocked
|
||||||
|
.explanation.
|
||||||
|
Instagram blocked this server for requesting too many timeline pages.
|
||||||
|
This block is not permanent, and will expire soon.
|
||||||
|
Please wait a few minutes before trying again.
|
||||||
|
Or, you could try #[a(href="https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md") browsing Bibliogram on another instance.]
|
@ -534,6 +534,19 @@ body
|
|||||||
&:target
|
&:target
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
|
.error-fragment
|
||||||
|
text-align: center
|
||||||
|
padding: 30px 10px
|
||||||
|
|
||||||
|
.message
|
||||||
|
font-size: 32px
|
||||||
|
margin-bottom: 10px
|
||||||
|
|
||||||
|
.explanation
|
||||||
|
font-size: 20px
|
||||||
|
white-space: pre-line
|
||||||
|
line-height: 1.3
|
||||||
|
|
||||||
.homepage
|
.homepage
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
|
Loading…
Reference in New Issue
Block a user