From: David ‘Bombe’ Roden Date: Fri, 15 Jul 2011 04:40:04 +0000 (+0200) Subject: Filter mention notification when it is requested. X-Git-Tag: 0.6.6^2~15 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=110e6c2eefbf742a6ff722e207fed6fc5d93af00;p=Sone.git Filter mention notification when it is requested. This resolves #209. --- 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 34770c6..8bfe472 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetNotificationAjaxPage.java @@ -85,6 +85,8 @@ public class GetNotificationAjaxPage extends JsonPage { notification = ListNotificationFilters.filterNewPostNotification((ListNotification) notification, currentSone, false); } else if ("new-reply-notification".equals(notificationId)) { notification = ListNotificationFilters.filterNewReplyNotification((ListNotification) notification, currentSone); + } else if ("mention-notification".equals(notificationId)) { + notification = ListNotificationFilters.filterNewPostNotification((ListNotification) notification, currentSone, false); } if (notification == null) { // TODO - show error