mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #7261, banned users still get digests
This commit is contained in:
@@ -77,6 +77,13 @@ Digest.getSubscribers = function (interval, callback) {
|
||||
next(err, subs);
|
||||
});
|
||||
},
|
||||
function (subscribers, next) {
|
||||
async.filter(subscribers, function (uid, next) {
|
||||
user.isBanned(uid, function (err, banned) {
|
||||
next(err, !banned);
|
||||
});
|
||||
}, next);
|
||||
},
|
||||
function (subscribers, next) {
|
||||
plugins.fireHook('filter:digest.subscribers', {
|
||||
interval: interval,
|
||||
|
||||
Reference in New Issue
Block a user