Use reply visibility check method.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 6 May 2011 13:29:01 +0000 (15:29 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 6 May 2011 13:29:01 +0000 (15:29 +0200)
src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java

index bc27173..264e77c 100644 (file)
@@ -128,7 +128,7 @@ public class ListNotificationFilters {
                }
                List<Reply> newReplies = new ArrayList<Reply>();
                for (Reply reply : newReplyNotification.getElements()) {
-                       if (isPostVisible(currentSone, reply.getPost())) {
+                       if (isReplyVisible(currentSone, reply)) {
                                newReplies.add(reply);
                        }
                }