Add method to create a “success” JSON object.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / UnfollowSoneAjaxPage.java
index 7e620ef..586ab55 100644 (file)
@@ -53,7 +53,7 @@ public class UnfollowSoneAjaxPage extends JsonPage {
                }
                currentSone.removeFriend(soneId);
                webInterface.getCore().saveSone(currentSone);
-               return new JsonObject().put("success", true);
+               return createSuccessJsonObject();
        }
 
 }