if (currentSone == null) {
return createErrorJsonObject("auth-required");
}
- currentSone.addFriend(soneId);
- webInterface.getCore().touchConfiguration();
+ webInterface.getCore().followSone(currentSone, soneId);
+ webInterface.getCore().markSoneKnown(webInterface.getCore().getSone(soneId));
return createSuccessJsonObject();
}