From d8be87a2f91126db817e5a01aa0382527b66241c Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Sun, 29 Dec 2024 10:29:29 +0000 Subject: [PATCH] Fix building post request url to /illegal --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 7010f5d..89b8c7e 100644 --- a/script.js +++ b/script.js @@ -594,7 +594,7 @@ function onClickMarkIllegal(phashes, md5_hashes, e) { e.stopPropagation(); e.preventDefault(); - console.log('CLICK', phashes, e.target.hash); + console.log('CLICK', phashes, md5_hashes, e.target.hash); const img_elems = document.querySelectorAll('img'); @@ -704,7 +704,7 @@ function renderPostElem(post, btn_delete=false) { if (p.hash != null) { results_tuple[0].push(bufferToHex(unpackBytes(BigInt(p.phash)))); } else { - results_tuple[1].push(p.md5_sum); + results_tuple[1].push(p.md5_hash); } return results_tuple;