|
|
|
@ -109,6 +109,11 @@ var async = require('async'),
|
|
|
|
|
return callback(err);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UserNotifications.generateNotificationPaths(notifications, uid, callback);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
UserNotifications.generateNotificationPaths = function (notifications, uid, callback) {
|
|
|
|
|
var pids = notifications.map(function(notification) {
|
|
|
|
|
return notification ? notification.pid : null;
|
|
|
|
|
});
|
|
|
|
@ -137,7 +142,6 @@ var async = require('async'),
|
|
|
|
|
|
|
|
|
|
callback(null, notifications);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function generatePostPaths(pids, uid, callback) {
|
|
|
|
|