Remove PostProvider methods from Core.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ViewSonePage.java
index 3c0ba8f..4874ade 100644 (file)
@@ -83,7 +83,7 @@ public class ViewSonePage extends SoneTemplatePage {
                        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);