Fix account deletion deleting incorrect report threads (#6465)

This commit is contained in:
aecsocket
2026-06-22 14:27:31 +00:00
committed by GitHub
parent d7917048d5
commit 0a0ef1ce81
2 changed files with 3 additions and 3 deletions
@@ -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,