X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FFollowSoneAjaxPage.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FFollowSoneAjaxPage.java;h=0c835533fc084fe140f706e121a6b6dac480a0b0;hb=bd2cbb229f68fb2535cf6010befa9c4a276d2ee6;hp=7dc1b247d5a3e9629fb0fda99abcc65cba0c62cf;hpb=8127a3d7f17b0740254a5935de97fa03312a4efd;p=Sone.git 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 7dc1b24..0c83553 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/FollowSoneAjaxPage.java @@ -44,7 +44,7 @@ public class FollowSoneAjaxPage extends JsonPage { @Override protected JsonObject createJsonObject(Request request) { String soneId = request.getHttpRequest().getParam("sone"); - Sone sone = webInterface.core().getSone(soneId); + Sone sone = webInterface.getCore().getSone(soneId); if (sone == null) { return new JsonObject().put("success", false).put("error", "invalid-sone-id"); } @@ -53,7 +53,7 @@ public class FollowSoneAjaxPage extends JsonPage { return new JsonObject().put("success", false).put("error", "auth-required"); } currentSone.addFriend(sone); - webInterface.core().saveSone(currentSone); + webInterface.getCore().saveSone(currentSone); return new JsonObject().put("success", true); }