From 73dea4fc4e6cb69f477fe14e9a3de9ea2ca82f16 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 11 Nov 2014 09:41:28 -0500 Subject: [PATCH] upvote and favourites notif fixing --- src/socket.io/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index c28064052b..310099ae75 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -146,7 +146,7 @@ SocketPosts.sendNotificationToPostOwner = function(pid, fromuid, notification) { async.parallel({ username: async.apply(user.getUserField, fromuid, 'username'), topicTitle: async.apply(topics.getTopicField, postData.tid, 'title'), - postContent: async.apply(postTools.parsePost, postData, postData.uid) + postObj: async.apply(postTools.parsePost, postData, postData.uid) }, function(err, results) { if (err) { return; @@ -154,7 +154,7 @@ SocketPosts.sendNotificationToPostOwner = function(pid, fromuid, notification) { notifications.create({ bodyShort: '[[' + notification + ', ' + results.username + ', ' + results.topicTitle + ']]', - bodyLong: results.postContent, + bodyLong: results.postObj.content, pid: pid, nid: 'post:' + pid + ':uid:' + fromuid, from: fromuid