js/mod/recent_posts.js: Don't fetch new posts beyond the first page

This commit is contained in:
Jon 2024-02-22 15:39:04 +00:00 committed by towards-a-new-leftypol
parent 663339923f
commit ac71dfc8d2
1 changed files with 1 additions and 1 deletions

View File

@ -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