Use method from JsonPage.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 25 May 2011 17:29:54 +0000 (19:29 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 25 May 2011 17:29:54 +0000 (19:29 +0200)
src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java

index bd1457f..1406c3a 100644 (file)
@@ -78,7 +78,7 @@ public class GetNotificationAjaxPage extends JsonPage {
        protected JsonObject createJsonObject(Request request) {
                String[] notificationIds = request.getHttpRequest().getParam("notifications").split(",");
                JsonObject jsonNotifications = new JsonObject();
-               Sone currentSone = webInterface.getCurrentSone(request.getToadletContext(), false);
+               Sone currentSone = getCurrentSone(request.getToadletContext(), false);
                for (String notificationId : notificationIds) {
                        Notification notification = webInterface.getNotifications().getNotification(notificationId);
                        if ("new-post-notification".equals(notificationId)) {