Only render notifications if they have changed.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / UnfollowSoneAjaxPage.java
index 7e620ef..c2379e8 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);
        }
 
        /**
@@ -53,7 +53,7 @@ public class UnfollowSoneAjaxPage extends JsonPage {
                }
                currentSone.removeFriend(soneId);
                webInterface.getCore().saveSone(currentSone);
-               return new JsonObject().put("success", true);
+               return createSuccessJsonObject();
        }
 
 }