fix undefined next

v1.18.x
barisusakli 9 years ago
parent 31815f7d22
commit f7ac1d89ff

@ -107,7 +107,7 @@ function generateForUserTopics(req, res, callback) {
} }
], function(err, userData) { ], function(err, userData) {
if (err) { if (err) {
return next(err); return callback(err);
} }
generateForTopics({ generateForTopics({
@ -116,7 +116,7 @@ function generateForUserTopics(req, res, callback) {
description: 'A list of topics that are posted by ' + userData.username, description: 'A list of topics that are posted by ' + userData.username,
feed_url: '/user/' + userslug + '/topics.rss', feed_url: '/user/' + userslug + '/topics.rss',
site_url: '/user/' + userslug + '/topics' site_url: '/user/' + userslug + '/topics'
}, 'uid:' + userData.uid + ':topics', req, res, next); }, 'uid:' + userData.uid + ':topics', req, res, callback);
}); });
} }

@ -1,16 +1,15 @@
'use strict'; 'use strict';
var path = require('path'), var async = require('async');
async = require('async'), var sm = require('sitemap');
sm = require('sitemap'), var nconf = require('nconf');
url = require('url'),
nconf = require('nconf'), var db = require('./database');
db = require('./database'), var categories = require('./categories');
categories = require('./categories'), var topics = require('./topics');
topics = require('./topics'), var privileges = require('./privileges');
privileges = require('./privileges'), var meta = require('./meta');
meta = require('./meta'), var utils = require('../public/src/utils');
utils = require('../public/src/utils');
var sitemap = { var sitemap = {
maps: { maps: {

Loading…
Cancel
Save