v1.18.x
barisusakli 9 years ago
parent e1ce9e0250
commit 7f44041e01

@ -23,8 +23,8 @@ module.exports = function(SocketPosts) {
return callback(new Error('[[error:invalid-data]]')); return callback(new Error('[[error:invalid-data]]'));
} }
var flaggingUser = {}, var flaggingUser = {};
post; var post;
async.waterfall([ async.waterfall([
function (next) { function (next) {
@ -40,9 +40,7 @@ module.exports = function(SocketPosts) {
}, },
function (topicData, next) { function (topicData, next) {
post.topic = topicData; post.topic = topicData;
next();
},
function (next) {
async.parallel({ async.parallel({
isAdminOrMod: function(next) { isAdminOrMod: function(next) {
privileges.categories.isAdminOrMod(post.topic.cid, socket.uid, next); privileges.categories.isAdminOrMod(post.topic.cid, socket.uid, next);

Loading…
Cancel
Save