Bugfix on search page

face-detect
Noah Petherbridge 2023-08-29 21:14:06 -07:00
parent 6eb51cf545
commit 8275cc3ad9
1 changed files with 2 additions and 2 deletions

View File

@ -283,10 +283,10 @@ func SearchUsers(user *User, search *UserSearch, pager *Pagination) ([]*User, er
wheres = append(wheres, `
EXISTS (
SELECT 1 FROM profile_fields
WHERE user_id = users.id AND name = ? AND value = ?
WHERE user_id = users.id AND name = ? AND value LIKE ?
)
`)
placeholders = append(placeholders, "here_for", search.HereFor)
placeholders = append(placeholders, "here_for", "%"+search.HereFor+"%")
}
if search.Certified {