}
if ("post".equals(type)) {
currentSone.removeLikedPostId(id);
+ webInterface.getCore().saveSone(currentSone);
} else if ("reply".equals(type)) {
currentSone.removeLikedReplyId(id);
+ webInterface.getCore().saveSone(currentSone);
} else {
return createErrorJsonObject("invalid-type");
}
- return new JsonObject().put("success", true);
+ return createSuccessJsonObject();
}
}