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