From 73d14e4516d3459db2d1f7ad085f8063a2e375ff Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Tue, 12 Mar 2019 14:02:07 -0400 Subject: [PATCH 1/2] fix: return early if there are not blocked uids --- src/topics/unread.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/topics/unread.js b/src/topics/unread.js index 9efe5c8363..02df4bd781 100644 --- a/src/topics/unread.js +++ b/src/topics/unread.js @@ -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) { From 0d19bb3d463af049b7a41f9988ab579452582633 Mon Sep 17 00:00:00 2001 From: Andrew Rodrigues Date: Tue, 12 Mar 2019 17:53:34 -0400 Subject: [PATCH 2/2] chore: bump themes, fix: https://github.com/NodeBB/NodeBB/issues/7446 --- install/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/package.json b/install/package.json index 978f7e2632..a06cdc0878 100644 --- a/install/package.json +++ b/install/package.json @@ -90,9 +90,9 @@ "nodebb-plugin-spam-be-gone": "0.6.1", "nodebb-rewards-essentials": "0.0.13", "nodebb-theme-lavender": "5.0.9", - "nodebb-theme-persona": "9.1.25", + "nodebb-theme-persona": "9.1.26", "nodebb-theme-slick": "1.2.22", - "nodebb-theme-vanilla": "10.1.23", + "nodebb-theme-vanilla": "10.1.24", "nodebb-widget-essentials": "4.0.14", "nodemailer": "^5.0.0", "passport": "^0.4.0",