From 8cf9c451dc1d5f3ed23ead40bee41592f7c07254 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 13 Jan 2022 13:59:21 +0300 Subject: [PATCH] Headlines: fix multiple article ids not passed to setScore as an array --- js/Headlines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Headlines.js b/js/Headlines.js index 7557676ee..18e47d740 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -178,7 +178,7 @@ const Headlines = { if (scores.length != 0) { scores.forEach((score) => { promises.push(xhr.post("backend.php", - {op: "article", method: "setScore", "ids[]": ops.rescore[score].toString(), score: score})); + {op: "article", method: "setScore", "ids[]": ops.rescore[score], score: score})); }); }