From: David ‘Bombe’ Roden Date: Wed, 25 May 2011 17:29:54 +0000 (+0200) Subject: Use method from JsonPage. X-Git-Tag: 0.6.5^2~28 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5e58ec8c41815b56a1f2d0009f25a2ac6998b289;p=Sone.git Use method from JsonPage. --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java index bd1457f..1406c3a 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java @@ -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)) {