Add a core thread that periodically saves the configuration.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / UnfollowSoneAjaxPage.java
index 586ab55..7f719b7 100644 (file)
@@ -35,7 +35,7 @@ public class UnfollowSoneAjaxPage extends JsonPage {
         *            The Sone web interface
         */
        public UnfollowSoneAjaxPage(WebInterface webInterface) {
-               super("ajax/unfollowSone.ajax", webInterface);
+               super("unfollowSone.ajax", webInterface);
        }
 
        /**
@@ -52,7 +52,7 @@ public class UnfollowSoneAjaxPage extends JsonPage {
                        return createErrorJsonObject("auth-required");
                }
                currentSone.removeFriend(soneId);
-               webInterface.getCore().saveSone(currentSone);
+               webInterface.getCore().touchConfiguration();
                return createSuccessJsonObject();
        }