Filter mention notification when it is requested.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Jul 2011 04:40:04 +0000 (06:40 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Jul 2011 04:40:04 +0000 (06:40 +0200)
This resolves #209.

src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java

index 34770c6..8bfe472 100644 (file)
@@ -85,6 +85,8 @@ public class GetNotificationAjaxPage extends JsonPage {
                                notification = ListNotificationFilters.filterNewPostNotification((ListNotification<Post>) notification, currentSone, false);
                        } else if ("new-reply-notification".equals(notificationId)) {
                                notification = ListNotificationFilters.filterNewReplyNotification((ListNotification<Reply>) notification, currentSone);
+                       } else if ("mention-notification".equals(notificationId)) {
+                               notification = ListNotificationFilters.filterNewPostNotification((ListNotification<Post>) notification, currentSone, false);
                        }
                        if (notification == null) {
                                // TODO - show error