From e481ed21eb056fd4c37a779c8df20b4c7771b36f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 7 Apr 2016 21:22:56 -0400 Subject: [PATCH] Using pid as discriminator for mergeId ... for favourite and upvote notifications. --- src/socket.io/helpers.js | 2 +- src/socket.io/posts/favourites.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/socket.io/helpers.js b/src/socket.io/helpers.js index 12a0e9d9b5..e4621811ca 100644 --- a/src/socket.io/helpers.js +++ b/src/socket.io/helpers.js @@ -80,7 +80,7 @@ SocketHelpers.sendNotificationToPostOwner = function(pid, fromuid, notification) pid: pid, nid: 'post:' + pid + ':uid:' + fromuid, from: fromuid, - mergeId: notification + '|' + postData.tid, + mergeId: notification + '|' + pid, topicTitle: results.topicTitle }, function(err, notification) { if (!err && notification) { diff --git a/src/socket.io/posts/favourites.js b/src/socket.io/posts/favourites.js index 6883ece06a..3d93afac08 100644 --- a/src/socket.io/posts/favourites.js +++ b/src/socket.io/posts/favourites.js @@ -124,11 +124,11 @@ module.exports = function(SocketPosts) { /* hooks: - filter.post.upvote - filter.post.downvote - filter.post.unvote - filter.post.favourite - filter.post.unfavourite + filter:post.upvote + filter:post.downvote + filter:post.unvote + filter:post.favourite + filter:post.unfavourite */ plugins.fireHook('filter:post.' + command, {data: data, uid: socket.uid}, function(err, filteredData) { if (err) {