return;
}
List<Post> sonePosts = sone.get().getPosts();
- sonePosts.addAll(webInterface.getCore().getDirectedPosts(sone.get().getId()));
+ sonePosts.addAll(webInterface.getCore().getDatabase().getDirectedPosts(sone.get().getId()));
Collections.sort(sonePosts, Post.TIME_COMPARATOR);
Pagination<Post> postPagination = new Pagination<Post>(sonePosts, webInterface.getCore().getPreferences().getPostsPerPage()).setPage(Numbers.safeParseInteger(request.getHttpRequest().getParam("postPage"), 0));
templateContext.set("postPagination", postPagination);
if (!post.isPresent() || repliedPosts.containsKey(post.get()) || sone.get().equals(post.get().getSone()) || (sone.get().getId().equals(post.get().getRecipientId().orNull()))) {
continue;
}
- repliedPosts.put(post.get(), webInterface.getCore().getReplies(post.get().getId()));
+ repliedPosts.put(post.get(), post.get().getReplies());
}
List<Post> posts = new ArrayList<Post>(repliedPosts.keySet());
Collections.sort(posts, new Comparator<Post>() {