protected void processTemplate(Request request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
String postId = request.getHttpRequest().getParam("post");
protected void processTemplate(Request request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
String postId = request.getHttpRequest().getParam("post");
Post post = webInterface.getCore().getPost(postId);
templateContext.set("post", post);
Post post = webInterface.getCore().getPost(postId);
templateContext.set("post", post);
@Override
protected void postProcess(Request request, TemplateContext templateContext) {
Post post = (Post) templateContext.get("post");
@Override
protected void postProcess(Request request, TemplateContext templateContext) {
Post post = (Post) templateContext.get("post");
webInterface.getCore().markPostKnown(post);
for (Reply reply : webInterface.getCore().getReplies(post)) {
webInterface.getCore().markReplyKnown(reply);
webInterface.getCore().markPostKnown(post);
for (Reply reply : webInterface.getCore().getReplies(post)) {
webInterface.getCore().markReplyKnown(reply);