From a469ca2972f76c813ee5d6c1bee9e4c196a79945 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 12 Sep 2015 19:21:01 -0400 Subject: [PATCH] notification id change --- src/topics/follow.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/topics/follow.js b/src/topics/follow.js index 2dd3e434f4..1b0ce4d3dd 100644 --- a/src/topics/follow.js +++ b/src/topics/follow.js @@ -133,13 +133,14 @@ module.exports = function(Topics) { bodyShort: '[[notifications:user_posted_to, ' + postData.user.username + ', ' + title + ']]', bodyLong: postData.content, pid: postData.pid, - nid: 'tid:' + postData.topic.tid + ':pid:' + postData.pid + ':uid:' + exceptUid, + nid: 'new_post:tid:' + postData.topic.tid + ':pid:' + postData.pid + ':uid:' + exceptUid, tid: postData.topic.tid, from: exceptUid }, function(err, notification) { if (err) { return next(err); } + if (notification) { notifications.push(notification, followers); }