From 32d4ac843a86d2e7eae0c9c411e3c48ae4c342c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 20 Aug 2024 20:29:24 -0400 Subject: [PATCH 1/3] chore: up widgets --- install/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/package.json b/install/package.json index 04ac16cce1..54515b6207 100644 --- a/install/package.json +++ b/install/package.json @@ -108,7 +108,7 @@ "nodebb-theme-lavender": "7.1.8", "nodebb-theme-peace": "2.2.6", "nodebb-theme-persona": "13.3.25", - "nodebb-widget-essentials": "7.0.19", + "nodebb-widget-essentials": "7.0.20", "nodemailer": "6.9.13", "nprogress": "0.2.0", "passport": "0.7.0", From bf6be3efc5df9de8d48853f0b7c326050b5a082d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 20 Aug 2024 20:31:17 -0400 Subject: [PATCH 2/3] chore: up widgets --- install/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/package.json b/install/package.json index 54515b6207..e77437aa1b 100644 --- a/install/package.json +++ b/install/package.json @@ -108,7 +108,7 @@ "nodebb-theme-lavender": "7.1.8", "nodebb-theme-peace": "2.2.6", "nodebb-theme-persona": "13.3.25", - "nodebb-widget-essentials": "7.0.20", + "nodebb-widget-essentials": "7.0.21", "nodemailer": "6.9.13", "nprogress": "0.2.0", "passport": "0.7.0", From 4aad6019675ef4a2123c5ac2211cf09a2b0d76a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 21 Aug 2024 12:55:37 -0400 Subject: [PATCH 3/3] perf: don't load unread page again if everything already loaded this only applies when you have only 1-2 unread topics, side effect from https://github.com/NodeBB/NodeBB/pull/9525 --- public/src/client/infinitescroll.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/src/client/infinitescroll.js b/public/src/client/infinitescroll.js index 838f164f32..eaf3e97720 100644 --- a/public/src/client/infinitescroll.js +++ b/public/src/client/infinitescroll.js @@ -20,8 +20,9 @@ define('forum/infinitescroll', ['hooks', 'alerts', 'api'], function (hooks, aler } previousScrollTop = $(window).scrollTop(); $(window).off('scroll', startScrollTimeout).on('scroll', startScrollTimeout); - - if ($body.height() <= $(window).height()) { + if ($body.height() <= $(window).height() && ( + !ajaxify.data.hasOwnProperty('pageCount') || ajaxify.data.pageCount > 1 + )) { callback(1); } };