Node.js based forum software built for the modern web
fixing crash with deleted notifications
Julian Lamf4187fc67154
diff --git a/src/user/notifications.js b/src/user/notifications.jsindex 5a30149eef..b085e7654d 100644--- a/src/user/notifications.js+++ b/src/user/notifications.js@@ -78,8 +78,8 @@ var async = require('async'),notifs.forEach(function(notification, index) {if (!notification) {- winston.verbose('[notifications.get] nid ' + nids[index] + ' not found. Removing.');- deletedNids.push(nids[index]);+ winston.verbose('[notifications.get] nid ' + notification.nid + ' not found. Removing.');+ deletedNids.push(notification.nid);} else {notification.read = read;notification.readClass = !notification.read ? 'unread' : '';