mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@@ -204,7 +204,7 @@ module.exports = function (Topics) {
|
||||
Topics.markAsRead = function (tids, uid, callback) {
|
||||
callback = callback || function () {};
|
||||
if (!Array.isArray(tids) || !tids.length) {
|
||||
return callback();
|
||||
return setImmediate(callback, null, false);
|
||||
}
|
||||
|
||||
tids = tids.filter(function (tid, index, array) {
|
||||
@@ -212,7 +212,7 @@ module.exports = function (Topics) {
|
||||
});
|
||||
|
||||
if (!tids.length) {
|
||||
return callback(null, false);
|
||||
return setImmediate(callback, null, false);
|
||||
}
|
||||
|
||||
async.waterfall([
|
||||
|
||||
Reference in New Issue
Block a user