From: David ‘Bombe’ Roden Date: Wed, 19 Jan 2011 18:11:26 +0000 (+0100) Subject: Use correct request variable. X-Git-Tag: 0.4.2^2~27^2~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c5ba2a2de1ee80ab207f79db686cbd12898dec07;p=Sone.git Use correct request variable. --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java index 5bcb55b..b641ea0 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java @@ -51,7 +51,7 @@ public class MarkAsKnownAjaxPage extends JsonPage { if (!type.equals("sone") && !type.equals("post") && !type.equals("reply")) { return createErrorJsonObject("invalid-type"); } - String[] ids = request.getHttpRequest().getParam("ids").split(" "); + String[] ids = request.getHttpRequest().getParam("id").split(" "); Core core = webInterface.getCore(); for (String id : ids) { if (type.equals("post")) {