X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FFollowSonePage.java;h=cfa60bb71ca3fb0f181b2c46ea68b61240e1653b;hb=33e5bcf8dbd32d79dd57d412e33284f2ae3b73c9;hp=36bb1a4725d4c1023f5b615e786d331725d4ff66;hpb=eca036999a92aa8d0537bab0403dc7edec4b874c;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/FollowSonePage.java b/src/main/java/net/pterodactylus/sone/web/FollowSonePage.java index 36bb1a4..cfa60bb 100644 --- a/src/main/java/net/pterodactylus/sone/web/FollowSonePage.java +++ b/src/main/java/net/pterodactylus/sone/web/FollowSonePage.java @@ -35,7 +35,7 @@ public class FollowSonePage extends SoneTemplatePage { * The Sone web interface */ public FollowSonePage(Template template, WebInterface webInterface) { - super("followSone.html", template, "Page.FollowSone.Title", webInterface); + super("followSone.html", template, "Page.FollowSone.Title", webInterface, true); } // @@ -49,7 +49,7 @@ public class FollowSonePage extends SoneTemplatePage { protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); if (request.getMethod() == Method.POST) { - String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone", 36); + String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone", 44); String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64); Sone currentSone = getCurrentSone(request.getToadletContext()); Sone sone = webInterface.core().getSone(soneId); @@ -60,16 +60,4 @@ public class FollowSonePage extends SoneTemplatePage { } } - // - // SONETEMPLATEPAGE METHODS - // - - /** - * {@inheritDoc} - */ - @Override - protected boolean requiresLogin() { - return true; - } - }