mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 00:56:13 +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 count = 3;
|
||||||
var done = false;
|
var done = false;
|
||||||
var hasUnblockedUnread = params.topicTimestamp > userLastReadTimestamp;
|
var hasUnblockedUnread = params.topicTimestamp > userLastReadTimestamp;
|
||||||
|
if (!params.blockedUids.length) {
|
||||||
|
return setImmediate(callback, null, hasUnblockedUnread);
|
||||||
|
}
|
||||||
async.whilst(function () {
|
async.whilst(function () {
|
||||||
return !done;
|
return !done;
|
||||||
}, function (_next) {
|
}, function (_next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user