- });
- int page = request.getHttpRequest().getIntParam("page", 0);
- Pagination<Post> postPagination = new Pagination<Post>(allPosts, 25).setPage(page);
- List<Post> postsOnPage = postPagination.getItems();
- template.set("posts", postsOnPage);
- template.set("pagination", postPagination);
- }
-
- //
- // SONETEMPLATEPAGE METHODS
- //
+ /* mark it all as known. */
+ for (Post post : pagination.getItems()) {
+ webInterface.getCore().markPostKnown(post);
+ for (Reply reply : webInterface.getCore().getReplies(post)) {
+ webInterface.getCore().markReplyKnown(reply);
+ }
+ }