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