X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FFollowSoneAjaxPage.java;h=d82ab1ded064061c54a0cd25d01b3ea5bc628c7a;hp=e90fa5f18b21392a672a6d7e4e66094a16c19017;hb=89a905395984ec35e313b07594e21773ffd3d9d8;hpb=dc3d0d58fd47e520c723aa7d258c2f7ae09e1ee7 diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java index e90fa5f..d82ab1d 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java @@ -35,7 +35,7 @@ public class FollowSoneAjaxPage extends JsonPage { * The Sone web interface */ public FollowSoneAjaxPage(WebInterface webInterface) { - super("ajax/followSone.ajax", webInterface); + super("followSone.ajax", webInterface); } /** @@ -52,8 +52,8 @@ public class FollowSoneAjaxPage extends JsonPage { return createErrorJsonObject("auth-required"); } currentSone.addFriend(soneId); - webInterface.getCore().saveSone(currentSone); - return new JsonObject().put("success", true); + webInterface.getCore().touchConfiguration(); + return createSuccessJsonObject(); } }