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