mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[mastodon-client] Proper user search autocomplete
This commit is contained in:
parent
0e39313ac4
commit
da5939d1d6
@ -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 New Issue
Block a user