Skip to content

Commit

Permalink
fixed user search bar on People page not working as expected for subs…
Browse files Browse the repository at this point in the history
…trings of name, closes #429
  • Loading branch information
albogdano committed Jan 5, 2024
1 parent cc6147e commit abd54cd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ public List<Profile> getUsers(String q, String sortby, String tag, Profile authU
qs += " OR properties.groups:(admins OR mods)"; // admins are members of every space and always visible
}

String spaceFilter = utils.sanitizeQueryString("", req).replaceAll("properties\\.space:", "properties.spaces:");
qs = utils.getUsersSearchQuery(qs, spaceFilter);

Set<String> havingSpaces = Optional.ofNullable((Set<String>) model.getAttribute("havingSpaces")).orElse(Set.of());
Set<String> notHavingSpaces = Optional.ofNullable((Set<String>) model.getAttribute("notHavingSpaces")).orElse(Set.of());
String havingSpacesFilter = "";
Expand Down

0 comments on commit abd54cd

Please sign in to comment.