From 19d63862379fdeface4db0ed6c9ec4edf6d6f31c Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Wed, 26 Apr 2017 10:48:08 -0600
Subject: [PATCH] Also abort if no uids to push to
---
src/notifications.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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();
}