X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FUnlikePage.java;h=1ecacc8302c58229e7f73f6e59e0325289bda5a4;hb=952e56e8a89eb706d8ff5e2f652c165b646a06f3;hp=bedf759fe92055f1e127642665b93b8b8bd88eb7;hpb=9022be629f86cd0d85477c65dbd6a8085c48a4d7;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/UnlikePage.java b/src/main/java/net/pterodactylus/sone/web/UnlikePage.java index bedf759..1ecacc8 100644 --- a/src/main/java/net/pterodactylus/sone/web/UnlikePage.java +++ b/src/main/java/net/pterodactylus/sone/web/UnlikePage.java @@ -38,7 +38,7 @@ public class UnlikePage extends SoneTemplatePage { * The Sone web interface */ public UnlikePage(Template template, WebInterface webInterface) { - super("unlike.html", template, "Page.UnlikePost.Title", webInterface); + super("unlike.html", template, "Page.Unlike.Title", webInterface, true); } // @@ -54,7 +54,7 @@ public class UnlikePage extends SoneTemplatePage { if (request.getMethod() == Method.POST) { String type = request.getHttpRequest().getPartAsStringFailsafe("type", 16); String id = request.getHttpRequest().getPartAsStringFailsafe(type, 36); - String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64); + String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256); Sone currentSone = getCurrentSone(request.getToadletContext()); if ("post".equals(type)) { currentSone.removeLikedPostId(id); @@ -65,16 +65,4 @@ public class UnlikePage extends SoneTemplatePage { } } - // - // SONETEMPLATEPAGE METHODS - // - - /** - * {@inheritDoc} - */ - @Override - protected boolean requiresLogin() { - return true; - } - }