X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FUnfollowSoneAjaxPage.java;h=509f629f4a8a36f863a06a05fd84b13be60959f8;hb=bd2cbb229f68fb2535cf6010befa9c4a276d2ee6;hp=e9650aaf99c924f6478b4e0dcb8d4909a5b61baa;hpb=01d2e31e5687276b5104edc27c3416d4cd9b89b8;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.java index e9650aa..509f629 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/UnfollowSoneAjaxPage.java @@ -44,7 +44,7 @@ public class UnfollowSoneAjaxPage 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 UnfollowSoneAjaxPage extends JsonPage { return new JsonObject().put("success", false).put("error", "auth-required"); } currentSone.removeFriend(sone); - webInterface.core().saveSone(currentSone); + webInterface.getCore().saveSone(currentSone); return new JsonObject().put("success", true); }