mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
derpy globals to get notification pushing working for sockets on new notification event
This commit is contained in:
@@ -55,6 +55,7 @@ var config = require('../config.js'),
|
||||
(function(uid) {
|
||||
Notifications.remove_by_uniqueId(notif_data.uniqueId, uid, function() {
|
||||
RDB.zadd('uid:' + uid + ':notifications:unread', notif_data.score, nid);
|
||||
global.io.sockets.in('uid_' + uid).emit('event:new_notification');
|
||||
if (callback) callback(true);
|
||||
});
|
||||
})(uids[x]);
|
||||
|
||||
Reference in New Issue
Block a user