From 32e5979d3e38c569e3aaf619b91443bc6a744960 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 14 Nov 2024 18:34:59 +0200 Subject: [PATCH] clarify --- files/assets/js/comments_v.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index 845226762..404c053f4 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -293,7 +293,7 @@ function distinguished_toggle(t, fullname) { function post_comment(fullname, hide) { const pids = document.getElementsByClassName('pid') //to account for crosspost embed - if (pids.length) { //need .length, getElementsByClassName is always True + if (pids.length) { //need .length, getElementsByClassName is always truthy const pid = pids[pids.length - 1].value const comments = JSON.parse(localStorage.getItem("comment-counts")) const newTotal = parseInt(comments[pid].c) + 1