Use correct notification ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 25 May 2011 17:37:43 +0000 (19:37 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 25 May 2011 17:37:43 +0000 (19:37 +0200)
src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java

index 1406c3a..0472349 100644 (file)
@@ -83,7 +83,7 @@ public class GetNotificationAjaxPage extends JsonPage {
                        Notification notification = webInterface.getNotifications().getNotification(notificationId);
                        if ("new-post-notification".equals(notificationId)) {
                                notification = ListNotificationFilters.filterNewPostNotification((ListNotification<Post>) notification, currentSone);
-                       } else if ("new-reply-notification".equals(notificationId)) {
+                       } else if ("new-replies-notification".equals(notificationId)) {
                                notification = ListNotificationFilters.filterNewReplyNotification((ListNotification<Reply>) notification, currentSone);
                        }
                        if (notification == null) {