Skip to content

Node.js based forum software built for the modern web

Also abort if no uids to push to

Peter Jaszkowiak19d63862379f
diff --git a/src/notifications.js b/src/notifications.js
index b7000dc124..057a86e674 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -191,7 +191,7 @@ var utils = require('./utils');
plugins.fireHook('filter:notification.push', { notification: notification, uids: uids }, next);
},
function (data, next) {
- if (!data || !data.notification) {
+ if (!data || !data.notification || !data.uids || !data.uids.length) {
return callback();
}