Skip to content

Commit

Permalink
fix: exclude self from user search
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Jan 12, 2024
1 parent b997b82 commit d343920
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export class DB {
FROM users
WHERE
username ILIKE $2 ESCAPE '~'
AND id <> $1
AND id NOT IN (
SELECT
DISTINCT user_id
Expand Down

0 comments on commit d343920

Please sign in to comment.