new_posts_ajax_stuff #1

Merged
0 merged 27 commits from new_posts_ajax_stuff into deploy_spamnoticer 2024-02-26 20:13:30 +00:00
1 changed files with 2 additions and 6 deletions
Showing only changes of commit 97ff7914bb - Show all commits

View File

@ -93,9 +93,6 @@ $().ready(() => {
}
LCNSite.INSTANCE.setUnseen(LCNSite.INSTANCE.getUnseen() + missingPCList.length)
secondsCounter = 11
} else {
updateSecondsByTSLP(lastPostC.getContent().getInfo())
}
} else if (res.status == 404) {
threadState = String(res.status)
@ -128,15 +125,14 @@ $().ready(() => {
}
const threadEl = thread.getElement()
statUniqueIPs.innerText = threadStats.unique_ips
statReplies.innerText = thread.getReplies().length
statFiles.innerText = threadEl.querySelectorAll(".files .file").length - threadEl.querySelectorAll(".files .file .post-image.deleted").length
statPage.innerText = threadStats.page + 1
updateSecondsByTSLP(thread.getReplies().at(-1).getInfo())
} catch (error) {
console.error("threadAutoUpdater: Failed while processing update. Probably a network error", error)
} finally {
secondsCounter = secondsCounter > 0 ? secondsCounter : 60
secondsCounter = 60
}
}