|
|
@ -78,8 +78,8 @@ var async = require('async'),
|
|
|
|
|
|
|
|
|
|
|
|
notifs.forEach(function(notification, index) {
|
|
|
|
notifs.forEach(function(notification, index) {
|
|
|
|
if (!notification) {
|
|
|
|
if (!notification) {
|
|
|
|
winston.verbose('[notifications.get] nid ' + nids[index] + ' not found. Removing.');
|
|
|
|
winston.verbose('[notifications.get] nid ' + notification.nid + ' not found. Removing.');
|
|
|
|
deletedNids.push(nids[index]);
|
|
|
|
deletedNids.push(notification.nid);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
notification.read = read;
|
|
|
|
notification.read = read;
|
|
|
|
notification.readClass = !notification.read ? 'unread' : '';
|
|
|
|
notification.readClass = !notification.read ? 'unread' : '';
|
|
|
|