diff options
author | Vitaly Takmazov | 2018-01-31 14:30:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-31 14:30:36 +0300 |
commit | d1dae1f5bb9de1b8ff6893e821e9aaad3e37216c (patch) | |
tree | e185e5d7ef1d54bf64a3402f2454f11bc9ceb4c9 /juick-api/src/main/java/com/juick/api/controllers | |
parent | 0c9e67eb323189993b48d71e866b2c4f97270e5e (diff) |
core: drop jid from user properties
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/controllers')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/controllers/Users.java | 10 |
1 files changed, 1 insertions, 9 deletions
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<User> doGetUsers( - @RequestParam(value = "uname", required = false) List<String> unames, - @RequestParam(value = "jid", required = false) List<String> jids) { + @RequestParam(value = "uname", required = false) List<String> unames) { List<com.juick.User> 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()) { |