Headlines: fix multiple article ids not passed to setScore as an array

This commit is contained in:
Andrew Dolgov 2022-01-13 13:59:21 +03:00
parent 53061d1508
commit 8cf9c451dc
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ const Headlines = {
if (scores.length != 0) { if (scores.length != 0) {
scores.forEach((score) => { scores.forEach((score) => {
promises.push(xhr.post("backend.php", 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}));
}); });
} }