mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-02 12:50:00 +01:00
closes #6972
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
"userSearchResultsPerPage": 50,
|
||||
"maximumGroupNameLength": 255,
|
||||
"preventTopicDeleteAfterReplies": 0,
|
||||
"feeds:disableSitemap": 0,
|
||||
"sitemapTopics": 500,
|
||||
"maintenanceMode": 0,
|
||||
"votesArePublic": 0,
|
||||
|
||||
@@ -8,6 +8,9 @@ var meta = require('../meta');
|
||||
var sitemapController = module.exports;
|
||||
|
||||
sitemapController.render = function (req, res, next) {
|
||||
if (meta.config['feeds:disableSitemap']) {
|
||||
return setImmediate(next);
|
||||
}
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
sitemap.render(next);
|
||||
@@ -38,7 +41,7 @@ sitemapController.getTopicPage = function (req, res, next) {
|
||||
|
||||
function sendSitemap(method, res, callback) {
|
||||
if (meta.config['feeds:disableSitemap']) {
|
||||
return callback();
|
||||
return setImmediate(callback);
|
||||
}
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
|
||||
Reference in New Issue
Block a user