barisusakli
2014-11-05 18:59:20 -05:00
parent a6e498bb5d
commit 595ff1f4b1
8 changed files with 32 additions and 52 deletions

View File

@@ -201,7 +201,7 @@ SocketPosts.edit = function(socket, data, callback) {
}
postTools.edit(socket.uid, data.pid, data.title, data.content, {topic_thumb: data.topic_thumb, tags: data.tags}, function(err, results) {
if(err) {
if (err) {
return callback(err);
}
@@ -323,10 +323,9 @@ SocketPosts.flag = function(socket, pid, callback) {
},
function(topicTitle, next) {
message = '[[notifications:user_flagged_post_in, ' + userName + ', ' + topicTitle + ']]';
postTools.parse(post.content, next);
postTools.parse(post, socket.uid, next);
},
function(postContent, next) {
post.content = postContent;
function(post, next) {
groups.get('administrators', {}, next);
},
function(adminGroup, next) {