+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected void postProcess(Request request, Template template) {
+ @SuppressWarnings("unchecked")
+ List<Post> posts = (List<Post>) template.get("posts");
+ for (Post post : posts) {
+ webInterface.getCore().markPostKnown(post);
+ for (Reply reply : webInterface.getCore().getReplies(post)) {
+ webInterface.getCore().markReplyKnown(reply);
+ }
+ }
+ }
+