Node.js based forum software built for the modern web
ability to disable sitemap.xml
psychobunny803b6f64b8c7
diff --git a/src/controllers/index.js b/src/controllers/index.jsindex 0a81ff47cc..b8b4fc3175 100644--- a/src/controllers/index.js+++ b/src/controllers/index.js@@ -186,6 +186,10 @@ Controllers.confirmEmail = function(req, res, next) {};Controllers.sitemap = function(req, res, next) {+ if (meta.config['feeds:disableSitemap'] === '1') {+ return res.redirect('404');+ }+var sitemap = require('../sitemap.js');sitemap.render(function(xml) {