From e0c9e617dc84296593f732f2c414d1ebe7d7d640 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 26 Apr 2023 08:38:13 +0300 Subject: Do not show hidden messages to ugnich --- src/main/java/com/juick/www/api/Messages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/www/api') diff --git a/src/main/java/com/juick/www/api/Messages.java b/src/main/java/com/juick/www/api/Messages.java index c9936dee..ead2c076 100644 --- a/src/main/java/com/juick/www/api/Messages.java +++ b/src/main/java/com/juick/www/api/Messages.java @@ -93,7 +93,7 @@ public class Messages { User user = userService.getUserByName(uname); int privacy = 0; if (!visitor.isAnonymous()) { - if (user.getUid() == visitor.getUid() || visitor.getUid() == 1) { + if (user.getUid() == visitor.getUid()) { privacy = -3; } else if (userService.isInWL(user.getUid(), visitor.getUid())) { privacy = -2; -- cgit v1.2.3