aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-11-19 01:04:44 +0300
committerGravatar Vitaly Takmazov2020-11-19 01:04:44 +0300
commit85108fcaeedc7d6da27283c5ea342022d1b03f2d (patch)
tree85df7151da4b78ef53e52a20cb108430711b63ca /src
parent971154ad03e8324324c48a24ce5091b8cd18d77d (diff)
Fix checkBL destination
We are checking for presence in visitor blacklist, not for user presence in others blacklist
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/service/UserServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java
index 778872e9..a86b22a6 100644
--- a/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/src/main/java/com/juick/service/UserServiceImpl.java
@@ -464,7 +464,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
return Collections.emptyList();
return getNamedParameterJdbcTemplate().queryForList(
- "SELECT user_id FROM bl_users WHERE bl_user_id = :visitor and user_id IN (:ids)",
+ "SELECT user_id FROM bl_users WHERE user_id = :visitor and bl_user_id IN (:ids)",
new MapSqlParameterSource()
.addValue("visitor", visitor)
.addValue("ids", uids),