projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use new session manager syntax.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
ViewPostPage.java
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
(file)
--- 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) {
* 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 {
*/
@Override
protected void processTemplate(Request request, Template template) throws RedirectException {
+ super.processTemplate(request, template);
String postId = request.getHttpRequest().getParam("post");
String postId = request.getHttpRequest().getParam("post");
- Post post = webInterface.
c
ore().getPost(postId);
+ Post post = webInterface.
getC
ore().getPost(postId);
template.set("post", post);
}
template.set("post", post);
}
- //
- // SONETEMPLATEPAGE METHODS
- //
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected boolean requiresLogin() {
- return true;
- }
-
}
}