mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
notifications refactor
added getMultiple which works with an array of nids
This commit is contained in:
@@ -478,7 +478,7 @@ accountsController.uploadPicture = function (req, res, next) {
|
||||
};
|
||||
|
||||
accountsController.getNotifications = function(req, res, next) {
|
||||
user.notifications.getAll(req.user.uid, null, null, function(err, notifications) {
|
||||
user.notifications.getAll(req.user.uid, 25, function(err, notifications) {
|
||||
res.render('notifications', {
|
||||
notifications: notifications
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user