}
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");
}
}
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");
}