aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-04 17:53:09 +0300
committerGravatar Vitaly Takmazov2018-07-04 17:53:09 +0300
commitea412bd40ab3576ac752c30705a13c0a7dfac27b (patch)
tree2d0fc44c3d0b1c6268707f1666fabf67f797e88f /juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java
parent2e563514d4d3bd5f6ae325376d6c47671e9a474b (diff)
do not show notifications from banned threads
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java')
-rw-r--r--juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java b/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java
index b97fc0a4..c567b5cd 100644
--- a/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/SubscriptionServiceImpl.java
@@ -106,9 +106,9 @@ public class SubscriptionServiceImpl extends BaseJdbcService implements Subscrip
msg.getMid(), reply.getUser().getUid());
if (!userids.isEmpty()) {
- return userService.getUsersByID(userids.stream()
- .filter(u -> blacklisted || !userService.isInBLAny(u, reply.getUser().getUid()))
- .collect(Collectors.toList()));
+ return userService.getUsersByID(userids).stream()
+ .filter(u -> blacklisted || !userService.isReplyToBL(u, reply))
+ .collect(Collectors.toList());
}
return Collections.emptyList();
}