removedu if from filter:parse,post, parse strip teaser content

This commit is contained in:
barisusakli
2015-03-23 19:32:32 -04:00
parent 7c9e76132d
commit b268927cf9
6 changed files with 30 additions and 19 deletions

View File

@@ -232,7 +232,7 @@ SocketPosts.sendNotificationToPostOwner = function(pid, fromuid, notification) {
async.parallel({
username: async.apply(user.getUserField, fromuid, 'username'),
topicTitle: async.apply(topics.getTopicField, postData.tid, 'title'),
postObj: async.apply(postTools.parsePost, postData, postData.uid)
postObj: async.apply(postTools.parsePost, postData)
}, function(err, results) {
if (err) {
return;
@@ -479,7 +479,7 @@ SocketPosts.flag = function(socket, pid, callback) {
function(topic, next) {
post.topic = topic;
message = '[[notifications:user_flagged_post_in, ' + userName + ', ' + topic.title + ']]';
postTools.parsePost(post, socket.uid, next);
postTools.parsePost(post, next);
},
function(post, next) {
async.parallel({