From c5ba2a2de1ee80ab207f79db686cbd12898dec07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 19 Jan 2011 19:11:26 +0100 Subject: [PATCH] Use correct request variable. --- src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) { -- 2.7.4