Fix ALL the logging!
[Sone.git] / src / main / java / net / pterodactylus / sone / web / UnfollowSonePage.java
index d8e53ce..f07880d 100644 (file)
@@ -55,9 +55,8 @@ public class UnfollowSonePage extends SoneTemplatePage {
                        Sone currentSone = getCurrentSone(request.getToadletContext());
                        String soneIds = request.getHttpRequest().getPartAsStringFailsafe("sone", 2000);
                        for (String soneId : soneIds.split("[ ,]+")) {
-                               currentSone.removeFriend(soneId);
+                               webInterface.getCore().unfollowSone(currentSone, soneId);
                        }
-                       webInterface.getCore().touchConfiguration();
                        throw new RedirectException(returnPage);
                }
        }