Save Sone locally after changing friends.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / UnfollowSonePage.java
index 5c838a0..d4fd688 100644 (file)
@@ -55,6 +55,7 @@ public class UnfollowSonePage extends SoneTemplatePage {
                        Sone sone = webInterface.core().getSone(soneId);
                        if (!sone.equals(currentSone)) {
                                currentSone.removeFriend(sone);
+                               webInterface.core().saveSone(currentSone);
                        }
                        throw new RedirectException(returnPage);
                }