Bugfix on user search page

face-detect
Noah Petherbridge 2023-10-10 18:03:05 -07:00
parent de5059c51c
commit 09ba634556
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ func SearchUsers(user *User, search *UserSearch, pager *Pagination) ([]*User, er
if search.Username != "" {
ilike := "%" + strings.TrimSpace(strings.ToLower(search.Username)) + "%"
wheres = append(wheres, "username LIKE ? OR name ILIKE ?")
wheres = append(wheres, "(username LIKE ? OR name ILIKE ?)")
placeholders = append(placeholders, ilike, ilike)
}