Skip to content

Commit d343920

Browse files
fix: exclude self from user search
1 parent b997b82 commit d343920

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/db.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export class DB {
180180
FROM users
181181
WHERE
182182
username ILIKE $2 ESCAPE '~'
183+
AND id <> $1
183184
AND id NOT IN (
184185
SELECT
185186
DISTINCT user_id

0 commit comments

Comments
 (0)