From ddc799fe3de8024141702e26f4272227a7d94da4 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sat, 5 Oct 2024 18:29:02 +0900 Subject: [PATCH] fix of d8cb7305ef4d5ad6398d9eb57ece2f3ba7ca73eb --- packages/backend/src/core/AbuseReportService.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/core/AbuseReportService.ts b/packages/backend/src/core/AbuseReportService.ts index cddfe5eb81..73baad5499 100644 --- a/packages/backend/src/core/AbuseReportService.ts +++ b/packages/backend/src/core/AbuseReportService.ts @@ -129,6 +129,10 @@ export class AbuseReportService { throw new Error('The target user host is null.'); } + if (report.forwarded) { + throw new Error('The report has already been forwarded.'); + } + await this.abuseUserReportsRepository.update(report.id, { forwarded: true, });