// JSONPAGE METHODS
//
- /**
- * {@inheritDoc}
- */
@Override
protected JsonReturnObject createJsonObject(FreenetRequest request) {
String type = request.getHttpRequest().getParam("type", null);
return createErrorJsonObject("invalid-" + type + "-id");
}
if ("post".equals(type)) {
- Optional<Post> post = webInterface.getCore().getPost(id);
+ Optional<Post> post = webInterface.getCore().getDatabase().getPost(id);
if (!post.isPresent()) {
return createErrorJsonObject("invalid-post-id");
}
return createErrorJsonObject("invalid-type");
}
- /**
- * {@inheritDoc}
- */
@Override
protected boolean needsFormPassword() {
return false;