- Sone currentSone = getCurrentSone(request.getToadletContext());
- currentSone.removeFriend(soneId);
- webInterface.getCore().saveSone(currentSone);
+ LocalSone currentSone = getCurrentSone(request.getToadletContext()).get();
+ String soneIds = request.getHttpRequest().getPartAsStringFailsafe("sone", 2000);
+ for (String soneId : soneIds.split("[ ,]+")) {
+ webInterface.getCore().unfollowSone(currentSone, soneId);
+ }