Using pid as discriminator for mergeId

... for favourite and upvote notifications.
v1.18.x
Julian Lam 9 years ago
parent c89a02bfb9
commit e481ed21eb

@ -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) {

@ -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) {

Loading…
Cancel
Save