diff options
author | Vitaly Takmazov | 2020-11-19 01:17:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-11-19 01:17:46 +0300 |
commit | a47bc2544e2e1b51f161a2156f3ba7a305e24ca3 (patch) | |
tree | ccdf243d850d78686979b3757f67828e28759abc /src/main/java/com/juick/www/api | |
parent | 85108fcaeedc7d6da27283c5ea342022d1b03f2d (diff) |
Fix blacklist checking when commenting over API
Diffstat (limited to 'src/main/java/com/juick/www/api')
-rw-r--r-- | src/main/java/com/juick/www/api/Post.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/api/Post.java b/src/main/java/com/juick/www/api/Post.java index c94c7b30..c993ebe3 100644 --- a/src/main/java/com/juick/www/api/Post.java +++ b/src/main/java/com/juick/www/api/Post.java @@ -129,8 +129,8 @@ public class Post { } if ((msg.ReadOnly && msg.getUser().getUid() != visitor.getUid()) - || userService.isInBLAny(msg.getUser().getUid(), visitor.getUid()) - || (reply != null && userService.isInBLAny(reply.getUser().getUid(), visitor.getUid()))) { + || userService.isInBL(visitor.getUid(), msg.getUser().getUid()) + || (reply != null && userService.isInBL(visitor.getUid(), reply.getUser().getUid()))) { // TODO: validator throw new HttpForbiddenException(); } |