From ac71dfc8d24c2523a5dab89c434a7d22d0f3e8c4 Mon Sep 17 00:00:00 2001 From: Jon <134811123+jonsmy@users.noreply.github.com> Date: Thu, 22 Feb 2024 15:39:04 +0000 Subject: [PATCH] js/mod/recent_posts.js: Don't fetch new posts beyond the first page --- js/mod/recent_posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mod/recent_posts.js b/js/mod/recent_posts.js index eb7667aa..9187a3a9 100644 --- a/js/mod/recent_posts.js +++ b/js/mod/recent_posts.js @@ -3,7 +3,7 @@ * @author jonsmy */ $().ready(() => { - if (LCNSite.INSTANCE.isModRecentsPage()) { + if (LCNSite.INSTANCE.isModRecentsPage() && !location.search.includes("&last")) { const loadIntFromStorage = key => { const value = localStorage.getItem(`jon-liveposts::${key}`) return value != null ? parseInt(value) : null