mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
notification id change
This commit is contained in:
@@ -133,13 +133,14 @@ module.exports = function(Topics) {
|
|||||||
bodyShort: '[[notifications:user_posted_to, ' + postData.user.username + ', ' + title + ']]',
|
bodyShort: '[[notifications:user_posted_to, ' + postData.user.username + ', ' + title + ']]',
|
||||||
bodyLong: postData.content,
|
bodyLong: postData.content,
|
||||||
pid: postData.pid,
|
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,
|
tid: postData.topic.tid,
|
||||||
from: exceptUid
|
from: exceptUid
|
||||||
}, function(err, notification) {
|
}, function(err, notification) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (notification) {
|
if (notification) {
|
||||||
notifications.push(notification, followers);
|
notifications.push(notification, followers);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user