diff --git a/src/routes/admin/reports/+server.ts b/src/routes/admin/reports/+server.ts index 94e2bab..05c7fe0 100644 --- a/src/routes/admin/reports/+server.ts +++ b/src/routes/admin/reports/+server.ts @@ -138,6 +138,7 @@ export const PATCH = (async ({ request, cookies }) => { if (data.notice != null) report.notice = data.notice; if (data.statement != null) report.statement = data.statement; if (data.status != null) report.status = data.status; + if (data.reported != null && reported) report.reported_id = reported.id; if (data.strike_reason != null) report.strike_reason_id = data.strike_reason == -1 ? null : data.strike_reason; if (data.strike_reason != null)