- Sone currentSone = getCurrentSone(request.getToadletContext());
- if (currentSone == null) {
- return createErrorJsonObject("auth-required");
- }
- currentSone.removeFriend(soneId);
- webInterface.getCore().saveSone(currentSone);
- return new JsonObject().put("success", true);
+ webInterface.getCore().unfollowSone(currentSone, soneId);
+ return createSuccessJsonObject();