notif fix

This commit is contained in:
Baris Soner Usakli
2014-01-21 12:35:34 -05:00
parent 74ccfd1e4d
commit aa2978976c
2 changed files with 2 additions and 1 deletions

View File

@@ -933,6 +933,7 @@ var bcrypt = require('bcrypt'),
notifications.get(nid, uid, function(notif_data) {
// If the notification could not be found, silently drop it
if (notif_data) {
notif_data.readClass = !notif_data.read ? 'label-warning' : '';
unread.push(notif_data);
} else {
db.sortedSetRemove('uid:' + uid + ':notifications:unread', nid);