mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
Using pid as discriminator for mergeId
... for favourite and upvote notifications.
This commit is contained in:
@@ -80,7 +80,7 @@ SocketHelpers.sendNotificationToPostOwner = function(pid, fromuid, notification)
|
|||||||
pid: pid,
|
pid: pid,
|
||||||
nid: 'post:' + pid + ':uid:' + fromuid,
|
nid: 'post:' + pid + ':uid:' + fromuid,
|
||||||
from: fromuid,
|
from: fromuid,
|
||||||
mergeId: notification + '|' + postData.tid,
|
mergeId: notification + '|' + pid,
|
||||||
topicTitle: results.topicTitle
|
topicTitle: results.topicTitle
|
||||||
}, function(err, notification) {
|
}, function(err, notification) {
|
||||||
if (!err && notification) {
|
if (!err && notification) {
|
||||||
|
|||||||
@@ -124,11 +124,11 @@ module.exports = function(SocketPosts) {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
hooks:
|
hooks:
|
||||||
filter.post.upvote
|
filter:post.upvote
|
||||||
filter.post.downvote
|
filter:post.downvote
|
||||||
filter.post.unvote
|
filter:post.unvote
|
||||||
filter.post.favourite
|
filter:post.favourite
|
||||||
filter.post.unfavourite
|
filter:post.unfavourite
|
||||||
*/
|
*/
|
||||||
plugins.fireHook('filter:post.' + command, {data: data, uid: socket.uid}, function(err, filteredData) {
|
plugins.fireHook('filter:post.' + command, {data: data, uid: socket.uid}, function(err, filteredData) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user