mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: return early if there are not blocked uids
This commit is contained in:
@@ -295,7 +295,9 @@ module.exports = function (Topics) {
|
||||
var count = 3;
|
||||
var done = false;
|
||||
var hasUnblockedUnread = params.topicTimestamp > userLastReadTimestamp;
|
||||
|
||||
if (!params.blockedUids.length) {
|
||||
return setImmediate(callback, null, hasUnblockedUnread);
|
||||
}
|
||||
async.whilst(function () {
|
||||
return !done;
|
||||
}, function (_next) {
|
||||
|
||||
Reference in New Issue
Block a user