X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=46506259d309b63035dc6679ebb345b25f14cc4c;hp=69077ed324fe3dbe865b7e768fc55938d15cdb42;hb=7d89048a7d5e9890d130f37994e8b4a410e692f0;hpb=6ddb4dad913e7b06a5ac5f33f73bf8214049bd8e diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 69077ed..4650625 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -264,7 +264,7 @@ public class WebInterface implements SessionProvider { .addAll(newPostNotification.getElements()) .addAll(localPostNotification.getElements()) .build(); - return allNewPosts.stream().filter(postVisibilityFilter.isVisible(currentSone)).collect(toSet()); + return allNewPosts.stream().filter(p -> postVisibilityFilter.isPostVisible(currentSone, p)).collect(toSet()); } @Nonnull @@ -273,7 +273,7 @@ public class WebInterface implements SessionProvider { .addAll(newReplyNotification.getElements()) .addAll(localReplyNotification.getElements()) .build(); - return allNewReplies.stream().filter(replyVisibilityFilter.isVisible(currentSone)).collect(toSet()); + return allNewReplies.stream().filter(r -> replyVisibilityFilter.isReplyVisible(currentSone, r)).collect(toSet()); } //