mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
refactored chat notification system to wait a bit before sending notif/email, closes #2098
This commit is contained in:
@@ -146,6 +146,7 @@ var async = require('async'),
|
||||
db.sortedSetsRemoveRangeByScore(readKeys, 0, oneWeekAgo);
|
||||
|
||||
plugins.fireHook('action:notification.pushed', {notification: notification, uids: uids});
|
||||
callback();
|
||||
|
||||
for(var i=0; i<uids.length; ++i) {
|
||||
websockets.in('uid_' + uids[i]).emit('event:new_notification', notification);
|
||||
|
||||
Reference in New Issue
Block a user