Remove PostProvider methods from Core.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / MarkAsKnownAjaxPage.java
index 602f253..cb5940c 100644 (file)
@@ -55,7 +55,7 @@ public class MarkAsKnownAjaxPage extends JsonPage {
                Core core = webInterface.getCore();
                for (String id : ids) {
                        if (type.equals("post")) {
-                               Optional<Post> post = core.getPost(id);
+                               Optional<Post> post = core.getDatabase().getPost(id);
                                if (!post.isPresent()) {
                                        continue;
                                }