Remove PostReplyProvider methods from Core.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / GetTimesAjaxPage.java
index 0c78bb6..bd51679 100644 (file)
@@ -52,9 +52,6 @@ public class GetTimesAjaxPage extends JsonPage {
                super("getTimes.ajax", webInterface);
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected JsonReturnObject createJsonObject(FreenetRequest request) {
                String allIds = request.getHttpRequest().getParam("posts");
@@ -62,7 +59,7 @@ public class GetTimesAjaxPage extends JsonPage {
                if (allIds.length() > 0) {
                        String[] ids = allIds.split(",");
                        for (String id : ids) {
-                               Optional<Post> post = webInterface.getCore().getPost(id);
+                               Optional<Post> post = webInterface.getCore().getDatabase().getPost(id);
                                if (!post.isPresent()) {
                                        continue;
                                }
@@ -81,7 +78,7 @@ public class GetTimesAjaxPage extends JsonPage {
                if (allIds.length() > 0) {
                        String[] ids = allIds.split(",");
                        for (String id : ids) {
-                               Optional<PostReply> reply = webInterface.getCore().getPostReply(id);
+                               Optional<PostReply> reply = webInterface.getCore().getDatabase().getPostReply(id);
                                if (!reply.isPresent()) {
                                        continue;
                                }
@@ -98,17 +95,11 @@ public class GetTimesAjaxPage extends JsonPage {
                return createSuccessJsonObject().put("postTimes", postTimes).put("replyTimes", replyTimes);
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected boolean needsFormPassword() {
                return false;
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected boolean requiresLogin() {
                return false;