mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fixing notifications crash again
This commit is contained in:
@@ -396,8 +396,10 @@ var async = require('async'),
|
|||||||
|
|
||||||
// Filter out duplicates
|
// Filter out duplicates
|
||||||
notifications = notifications.filter(function(notifObj, idx) {
|
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);
|
return !(notifObj.mergeId === (mergeId + '|' + differentiator) && idx !== modifyIndex);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user