From: David ‘Bombe’ Roden Date: Fri, 1 Jul 2011 08:33:40 +0000 (+0200) Subject: Filter mention notification, too. X-Git-Tag: 0.6.6^2~30 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a2c1ff645a1c1369f75e145932637721538d3794;p=Sone.git Filter mention notification, too. --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java index 56a4939..908ea2b 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java @@ -54,7 +54,7 @@ public class ListNotificationFilters { public static List filterNotifications(Collection notifications, Sone currentSone) { List filteredNotifications = new ArrayList(); for (Notification notification : notifications) { - if (notification.getId().equals("new-post-notification")) { + if (notification.getId().equals("new-post-notification") || notification.getId().equals("mention-notification")) { ListNotification filteredNotification = filterNewPostNotification((ListNotification) notification, currentSone); if (filteredNotification != null) { filteredNotifications.add(filteredNotification);