mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-04 11:57:44 +02:00
notif fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user