mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fixing notifications crash again
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user