- Reply reply = getReply(parameters, "Reply");
- Sone sone = getSone(parameters, "Sone");
- sone.addLikedReplyId(reply.getId());
- return new Response("ReplyLiked", new SimpleFieldSetBuilder().put("LikeCount", getCore().getLikes(reply).size()).get());
+ PostReply reply = getReply(parameters, "Reply");
+ Sone sone = getMandatoryLocalSone(parameters, "Sone");
+ reply.like(sone);
+ return new Response("ReplyLiked", new SimpleFieldSetBuilder().put("LikeCount", reply.getLikes().size()).get());