From 43f0b9a73cc97c2587a9fd702086859d36fc6647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=82=8F=E3=82=8F=E3=82=8F=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:03:18 +0900 Subject: [PATCH] =?UTF-8?q?fix(about-report-resolver):=20=E8=BB=A2?= =?UTF-8?q?=E9=80=81=E8=A8=AD=E5=AE=9A=E3=82=92=E4=B8=80=E5=BA=A6=E6=9C=89?= =?UTF-8?q?=E5=8A=B9=E3=81=AB=E3=81=99=E3=82=8B=E3=81=A8=E6=88=BB=E3=81=99?= =?UTF-8?q?=E3=81=93=E3=81=A8=E3=81=8C=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=20(MisskeyIO#812)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cherry-picked from atsu1125/misskey-core@5001b4b77c8e12818e6c039d61b95eaea1b55be7 Co-authored-by: atsu1125 --- .../server/api/endpoints/admin/abuse-report-resolver/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/admin/abuse-report-resolver/update.ts b/packages/backend/src/server/api/endpoints/admin/abuse-report-resolver/update.ts index ab77109c8..8bc724cf0 100644 --- a/packages/backend/src/server/api/endpoints/admin/abuse-report-resolver/update.ts +++ b/packages/backend/src/server/api/endpoints/admin/abuse-report-resolver/update.ts @@ -99,7 +99,7 @@ export default class extends Endpoint { } else if (ps.reportContentPattern === null) { properties.reportContentPattern = null; } - if (ps.forward) properties.forward = ps.forward; + if (ps.forward !== undefined) properties.forward = ps.forward; if (ps.expiresAt) { let expirationDate: Date | null = new Date(); const previousMonth = expirationDate.getUTCMonth();