1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-01 18:31:35 +00:00

Disable feed validation, add setting to enable

This commit is contained in:
Cadence Fish 2020-02-18 20:42:36 +13:00
parent 6d7e089dae
commit 21ec920516
No known key found for this signature in database
GPG key ID: 81015DF9AA8607E1
4 changed files with 14 additions and 11 deletions

View file

@ -58,7 +58,8 @@ module.exports = [
if (typeof page === "number" && !isNaN(page) && page >= 1) {
await user.timeline.fetchUpToPage(page - 1)
}
return render(200, "pug/user.pug", {url, user, constants, website_origin: constants.website_origin})
const {website_origin, settings: {display_feed_validation_buttons}} = constants
return render(200, "pug/user.pug", {url, user, constants, website_origin, display_feed_validation_buttons})
}).catch(error => {
if (error === constants.symbols.NOT_FOUND || error === constants.symbols.ENDPOINT_OVERRIDDEN) {
return render(404, "pug/friendlyerror.pug", {