mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
Fix account deletion deleting incorrect report threads (#6465)
This commit is contained in:
@@ -719,7 +719,7 @@ impl DBUser {
|
||||
"
|
||||
SELECT t.id
|
||||
FROM threads t
|
||||
INNER JOIN reports r ON t.report_id = r.id AND (r.user_id = $1 OR r.reporter = $1)
|
||||
INNER JOIN reports r ON t.report_id = r.id AND r.reporter = $1
|
||||
WHERE report_id IS NOT NULL
|
||||
",
|
||||
id as DBUserId,
|
||||
|
||||
Reference in New Issue
Block a user