diff options
author | 2018-08-29 17:34:53 +0300 | |
---|---|---|
committer | 2018-08-29 17:34:53 +0300 | |
commit | 4e5540dd5c58906a3c4afe18197f1ab1e0292692 (patch) | |
tree | b9bf6a00e62f8d27cf4bccc420e8b4dcec8a18d8 /juick-common/src/main | |
parent | 70963f3c8a616039a442362e778825f4fe85e4c5 (diff) |
fix tag blacklisting
Diffstat (limited to 'juick-common/src/main')
-rw-r--r-- | juick-common/src/main/java/com/juick/server/CommandsManager.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/juick-common/src/main/java/com/juick/server/CommandsManager.java b/juick-common/src/main/java/com/juick/server/CommandsManager.java index 50cdb202..13d9b436 100644 --- a/juick-common/src/main/java/com/juick/server/CommandsManager.java +++ b/juick-common/src/main/java/com/juick/server/CommandsManager.java @@ -242,8 +242,7 @@ public class CommandsManager { @UserCommand(pattern = "^bl\\s\\*(\\S+)$", patternFlags = Pattern.CASE_INSENSITIVE, help = "BL *tag - add *tag to your blacklist") public CommandResult blacklistTag(User user_from, URI attachment, String... arguments) { - User blUser = userService.getUserByName(arguments[0]); - if (!blUser.isAnonymous()) { + if (!user_from.isAnonymous()) { Tag tag = tagService.getTag(arguments[0], false); if (tag != null) { PrivacyQueriesService.PrivacyResult result = privacyQueriesService.blacklistTag(user_from, tag); |