thread_autoupdater.js: Use ip count from thread dom of /%b/catalog.json

This commit is contained in:
Jon 2024-03-15 22:24:39 +00:00 committed by towards-a-new-leftypol
parent 61166cb4f1
commit 1f4c94fef1
1 changed files with 1 additions and 1 deletions

View File

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