From 1f4c94fef1385db49ddd4953c5692155e66c6eac Mon Sep 17 00:00:00 2001 From: Jon <134811123+jonsmy@users.noreply.github.com> Date: Fri, 15 Mar 2024 22:24:39 +0000 Subject: [PATCH] thread_autoupdater.js: Use ip count from thread dom of /%b/catalog.json --- js/lcn/thread_autoupdater.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lcn/thread_autoupdater.js b/js/lcn/thread_autoupdater.js index 33ff8b86..ee808147 100644 --- a/js/lcn/thread_autoupdater.js +++ b/js/lcn/thread_autoupdater.js @@ -103,6 +103,7 @@ $().ready(() => { LCNPostContainer.all(dom.querySelector(`#thread_${threadPost.getInfo().getThreadId()}`))) updateRepliesFn(thread, missingPCList) + statUniqueIPs.innerText = dom.querySelector("#lcn-uniqueips").innerText } const fetchThreadFn = async () => { @@ -141,7 +142,6 @@ $().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