X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FViewPostPage.java;h=9bc28fa70d89849816d66a605f70097becc43b83;hb=324f43ea5f33e7e99712fb240e9a75fc574db394;hp=a013198af55ecb3edf4f215d8370c66f43ce7d35;hpb=fd30c0adf935d90f496671d9122f5ab0b9043670;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/ViewPostPage.java b/src/main/java/net/pterodactylus/sone/web/ViewPostPage.java index a013198..9bc28fa 100644 --- a/src/main/java/net/pterodactylus/sone/web/ViewPostPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ViewPostPage.java @@ -36,7 +36,7 @@ public class ViewPostPage extends SoneTemplatePage { * The Sone web interface */ public ViewPostPage(Template template, WebInterface webInterface) { - super("viewPost.html", template, "Page.ViewPost.Title", webInterface); + super("viewPost.html", template, "Page.ViewPost.Title", webInterface, false); } // @@ -48,21 +48,10 @@ public class ViewPostPage extends SoneTemplatePage { */ @Override protected void processTemplate(Request request, Template template) throws RedirectException { + super.processTemplate(request, template); String postId = request.getHttpRequest().getParam("post"); - Post post = webInterface.core().getPost(postId); + Post post = webInterface.getCore().getPost(postId); template.set("post", post); } - // - // SONETEMPLATEPAGE METHODS - // - - /** - * {@inheritDoc} - */ - @Override - protected boolean requiresLogin() { - return true; - } - }