Use correct request variable.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 19 Jan 2011 18:11:26 +0000 (19:11 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 19 Jan 2011 18:11:26 +0000 (19:11 +0100)
src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java

index 5bcb55b..b641ea0 100644 (file)
@@ -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")) {