diff --git a/src/user/notifications.js b/src/user/notifications.js index 779c5ef38a..caa9fe5ef4 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -275,8 +275,8 @@ var async = require('async'), return; } - privileges.categories.filterUids('read', results.topic.cid, followers, function(followers) { - if (!followers.length) { + privileges.categories.filterUids('read', results.topic.cid, followers, function(err, followers) { + if (err || !followers.length) { return; }