v1.18.x
Barış Soner Uşaklı 6 years ago
parent f4a00f0b5f
commit 94e10c8c32

@ -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) {

Loading…
Cancel
Save