mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
also send notification data along with event:new_notification socket call
This commit is contained in:
@@ -85,7 +85,7 @@ var async = require('async'),
|
||||
remove_by_uniqueId(notif_data.uniqueId, uid, function() {
|
||||
db.sortedSetAdd('uid:' + uid + ':notifications:unread', notif_data.datetime, nid);
|
||||
|
||||
websockets.in('uid_' + uid).emit('event:new_notification');
|
||||
websockets.in('uid_' + uid).emit('event:new_notification', notif_data);
|
||||
|
||||
if (callback) {
|
||||
callback(true);
|
||||
|
||||
Reference in New Issue
Block a user