package net.pterodactylus.sone.web;
import net.pterodactylus.sone.data.Post;
+import net.pterodactylus.sone.data.Reply;
import net.pterodactylus.util.template.Template;
/**
template.set("post", post);
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected void postProcess(Request request, Template template) {
+ Post post = (Post) template.get("post");
+ webInterface.getCore().markPostKnown(post);
+ for (Reply reply : webInterface.getCore().getReplies(post)) {
+ webInterface.getCore().markReplyKnown(reply);
+ }
+ }
+
}