- /**
- * {@inheritDoc}
- */
- @Override
- @SuppressWarnings("unchecked")
- protected void postProcess(Request request, TemplateContext templateContext) {
- Sone sone = (Sone) templateContext.get("sone");
- if (sone == null) {
- return;
- }
- webInterface.getCore().markSoneKnown(sone);
- List<Post> posts = (List<Post>) templateContext.get("posts");
- posts.addAll((List<Post>) templateContext.get("repliedPosts"));
- for (Post post : posts) {
- if (post.getSone() != null) {
- webInterface.getCore().markPostKnown(post);
- }
- for (Reply reply : webInterface.getCore().getReplies(post)) {
- webInterface.getCore().markReplyKnown(reply);
- }
- }
- }
-