Skip to content

Node.js based forum software built for the modern web

fixing notifications crash again

Julian Lama38d79e6ec7d
diff --git a/src/notifications.js b/src/notifications.js
index fc0dc11d50..ecfbcbd569 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -396,8 +396,10 @@ var async = require('async'),
// Filter out duplicates
notifications = notifications.filter(function(notifObj, idx) {
- if (notifObj.mergeId === (mergeId + '|' + differentiator) && idx !== modifyIndex) {
+ if (!notifObj.mergeId) {
+ return true;
}
+
return !(notifObj.mergeId === (mergeId + '|' + differentiator) && idx !== modifyIndex);
});
});