notification fixes

made post notifications unique per post so they dont overwrite other
types.
This commit is contained in:
barisusakli
2014-09-12 16:35:30 -04:00
parent 9466d7ced4
commit b3d9db10f2
6 changed files with 31 additions and 6 deletions

View File

@@ -95,7 +95,7 @@ var async = require('async'),
if (oldNotification) {
if (parseInt(oldNotification.pid, 10) === parseInt(data.pid, 10) && parseInt(oldNotification.importance, 10) > parseInt(data.importance, 10)) {
return callback(null, null);
return callback();
}
}