* The Sone web interface
*/
public CreateReplyAjaxPage(WebInterface webInterface) {
- super("ajax/createReply.ajax", webInterface);
+ super("createReply.ajax", webInterface);
}
//
return createErrorJsonObject("invalid-post-id");
}
Reply reply = webInterface.getCore().createReply(currentSone, post, text);
- return new JsonObject().put("success", true).put("reply", reply.getId());
+ return createSuccessJsonObject().put("reply", reply.getId());
}
}