mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
Also abort if no uids to push to
This commit is contained in:
@@ -191,7 +191,7 @@ 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) {
|
if (!data || !data.notification || !data.uids || !data.uids.length) {
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user