This commit is contained in:
Julian Lam
2015-12-16 12:15:24 -05:00
parent 9db0f59432
commit 05df8900db
6 changed files with 33 additions and 9 deletions

View File

@@ -84,7 +84,9 @@ module.exports = function(SocketPosts) {
bodyLong: post.content,
pid: data.pid,
nid: 'post_flag:' + data.pid + ':uid:' + socket.uid,
from: socket.uid
from: socket.uid,
mergeId: 'notifications:user_flagged_post_in|' + data.pid,
topicTitle: post.topic.title
}, function(err, notification) {
if (err || !notification) {
return next(err);