Node.js based forum software built for the modern web
fixed null error with notif grouping
Julian Lam9f5815555a6f
diff --git a/src/notifications.js b/src/notifications.jsindex c09f438fc9..cda7fae2fd 100644--- a/src/notifications.js+++ b/src/notifications.js@@ -344,6 +344,10 @@ var async = require('async'),notifications = mergeIds.reduce(function(notifications, mergeId) {isolated = notifications.filter(function(notifObj) {+ if (!notifObj.hasOwnProperty('mergeId')) {+ return false;+ }+return notifObj.mergeId.split('|')[0] === mergeId;});