Skip to content

Node.js based forum software built for the modern web

notification id change

barisusaklia469ca2972f7
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);
}