aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api
diff options
context:
space:
mode:
Diffstat (limited to 'juick-api/src/main/java/com/juick/api')
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/Users.java10
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()) {