Save Sone locally after changing friends.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / FollowSoneAjaxPage.java
index 5b4fdc2..7dc1b24 100644 (file)
@@ -53,6 +53,7 @@ public class FollowSoneAjaxPage extends JsonPage {
                        return new JsonObject().put("success", false).put("error", "auth-required");
                }
                currentSone.addFriend(sone);
+               webInterface.core().saveSone(currentSone);
                return new JsonObject().put("success", true);
        }