X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FGetTimesAjaxPage.java;h=bd51679dc5825a63ea8c43909673cfc50454e181;hb=2e03e9dddbea4b81aacaf1aa316f5c3ccffd4bf9;hp=0c78bb6d8800ed904b9dffb922780503cfa9fee1;hpb=9fbafff8f3467329e7c8ad24d5d13273962ade28;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java index 0c78bb6..bd51679 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java @@ -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 = webInterface.getCore().getPost(id); + Optional 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 reply = webInterface.getCore().getPostReply(id); + Optional 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;