From d1dae1f5bb9de1b8ff6893e821e9aaad3e37216c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 31 Jan 2018 14:30:36 +0300 Subject: core: drop jid from user properties --- juick-api/src/main/java/com/juick/api/controllers/Users.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'juick-api/src/main') diff --git a/juick-api/src/main/java/com/juick/api/controllers/Users.java b/juick-api/src/main/java/com/juick/api/controllers/Users.java index dc8ebc84..b221d9fe 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Users.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Users.java @@ -46,8 +46,7 @@ public class Users { @RequestMapping(value = "/users", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public List doGetUsers( - @RequestParam(value = "uname", required = false) List unames, - @RequestParam(value = "jid", required = false) List jids) { + @RequestParam(value = "uname", required = false) List unames) { List users = new ArrayList<>(); if (unames != null) { @@ -57,13 +56,6 @@ public class Users { users.addAll(userService.getUsersByName(unames)); } - if (jids != null) { - jids.removeIf(WebUtils::isNotJid); - - if (!jids.isEmpty() && jids.size() < 20) - users.addAll(userService.getUsersByJID(jids)); - } - if (!users.isEmpty()) return users; if (!UserUtils.getCurrentUser().isAnonymous()) { -- cgit v1.2.3