mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
[mastodon-client] Proper user search autocomplete
This commit is contained in:
parent
0e39313ac4
commit
da5939d1d6
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ export class SearchHelpers {
|
|||
query.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.where("user.name ILIKE :q", { q: `%${sqlLikeEscape(q)}%` });
|
||||
qb.orWhere("user.usernameLower ILIKE :q", { q: `%${sqlLikeEscape(q)}%` });
|
||||
qb.orWhere("concat_ws('@', user.usernameLower, user.host) ILIKE :q", { q: `%${sqlLikeEscape(q)}%` });
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue