mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
Allow aborting notification push
This commit is contained in:
@@ -191,6 +191,10 @@ var utils = require('./utils');
|
|||||||
plugins.fireHook('filter:notification.push', { notification: notification, uids: uids }, next);
|
plugins.fireHook('filter:notification.push', { notification: notification, uids: uids }, next);
|
||||||
},
|
},
|
||||||
function (data, next) {
|
function (data, next) {
|
||||||
|
if (!data || !data.notification) {
|
||||||
|
return callback();
|
||||||
|
}
|
||||||
|
|
||||||
uids = data.uids;
|
uids = data.uids;
|
||||||
notification = data.notification;
|
notification = data.notification;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user