super("getTimes.ajax", webInterface);
}
- /**
- * {@inheritDoc}
- */
@Override
protected JsonReturnObject createJsonObject(FreenetRequest request) {
String allIds = request.getHttpRequest().getParam("posts");
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;
}
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;
}
return createSuccessJsonObject().put("postTimes", postTimes).put("replyTimes", replyTimes);
}
- /**
- * {@inheritDoc}
- */
@Override
protected boolean needsFormPassword() {
return false;
}
- /**
- * {@inheritDoc}
- */
@Override
protected boolean requiresLogin() {
return false;