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
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", {