[backend] Don't exclude local user in search-by-username-and-host
This commit is contained in:
parent
5b672e20af
commit
b4616d3f36
1 changed files with 0 additions and 2 deletions
|
@ -79,7 +79,6 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||
|
||||
const query = Users.createQueryBuilder("user")
|
||||
.where(`user.id IN (${followingQuery.getQuery()})`)
|
||||
.andWhere("user.id != :meId", { meId: me.id })
|
||||
.andWhere("user.isSuspended = FALSE")
|
||||
.andWhere("user.usernameLower LIKE :username", {
|
||||
username: `${sqlLikeEscape(ps.username.toLowerCase())}%`,
|
||||
|
@ -106,7 +105,6 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||
if (users.length < ps.limit) {
|
||||
const otherQuery = await Users.createQueryBuilder("user")
|
||||
.where(`user.id NOT IN (${followingQuery.getQuery()})`)
|
||||
.andWhere("user.id != :meId", { meId: me.id })
|
||||
.andWhere("user.isSuspended = FALSE")
|
||||
.andWhere("user.usernameLower LIKE :username", {
|
||||
username: `${sqlLikeEscape(ps.username.toLowerCase())}%`,
|
||||
|
|
Loading…
Reference in a new issue