v1.18.x
Barış Soner Uşaklı 10 years ago
parent 27049a2180
commit 68835844b0

@ -136,11 +136,17 @@ module.exports = function(Topics) {
nid: 'tid:' + postData.topic.tid + ':pid:' + postData.pid + ':uid:' + exceptUid,
tid: postData.topic.tid,
from: exceptUid
}, next);
}, function(err, notification) {
if (err) {
return next(err);
}
if (notification) {
notifications.push(notification, followers);
}
next();
});
},
function(notification, next) {
notifications.push(notification, followers);
function(next) {
async.eachLimit(followers, 3, function(toUid, next) {
async.parallel({
userData: async.apply(user.getUserFields, toUid, ['username']),

Loading…
Cancel
Save