* The Sone web interface
*/
public LikeAjaxPage(WebInterface webInterface) {
- super("ajax/like.ajax", webInterface);
+ super("like.ajax", webInterface);
}
/**
}
if ("post".equals(type)) {
currentSone.addLikedPostId(id);
+ webInterface.getCore().saveSone(currentSone);
} else if ("reply".equals(type)) {
currentSone.addLikedReplyId(id);
+ webInterface.getCore().saveSone(currentSone);
} else {
return createErrorJsonObject("invalid-type");
}
- return new JsonObject().put("success", true);
+ return createSuccessJsonObject();
}
}