From a1e1e92486af67f159b94acde3f1fe24a1592223 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sat, 5 Oct 2024 16:19:46 +0900 Subject: [PATCH] tweak --- packages/backend/src/models/AbuseUserReport.ts | 6 +++--- .../api/endpoints/admin/resolve-abuse-user-report.ts | 2 +- packages/frontend/src/components/MkAbuseReport.vue | 8 ++++---- packages/misskey-js/src/autogen/types.ts | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/backend/src/models/AbuseUserReport.ts b/packages/backend/src/models/AbuseUserReport.ts index 5afe4c59e052..cb5672e4ac2a 100644 --- a/packages/backend/src/models/AbuseUserReport.ts +++ b/packages/backend/src/models/AbuseUserReport.ts @@ -69,14 +69,14 @@ export class MiAbuseUserReport { public moderationNote: string; /** - * positive 是認 ... 通報内容が正当であり、肯定的に対応された - * negative 否認 ... 通報内容が正当でなく、否定的に対応された + * accept 是認 ... 通報内容が正当であり、肯定的に対応された + * reject 否認 ... 通報内容が正当でなく、否定的に対応された * null ... その他 */ @Column('varchar', { length: 128, nullable: true, }) - public resolvedAs: 'positive' | 'negative' | null; + public resolvedAs: 'accept' | 'reject' | null; //#region Denormalized fields @Index() diff --git a/packages/backend/src/server/api/endpoints/admin/resolve-abuse-user-report.ts b/packages/backend/src/server/api/endpoints/admin/resolve-abuse-user-report.ts index 9f4472376cbd..554d324ff24d 100644 --- a/packages/backend/src/server/api/endpoints/admin/resolve-abuse-user-report.ts +++ b/packages/backend/src/server/api/endpoints/admin/resolve-abuse-user-report.ts @@ -32,7 +32,7 @@ export const paramDef = { type: 'object', properties: { reportId: { type: 'string', format: 'misskey:id' }, - resolvedAs: { type: 'string', enum: ['positive', 'negative', null], nullable: true }, + resolvedAs: { type: 'string', enum: ['accept', 'reject', null], nullable: true }, }, required: ['reportId'], } as const; diff --git a/packages/frontend/src/components/MkAbuseReport.vue b/packages/frontend/src/components/MkAbuseReport.vue index 47c256a3bef2..2f0e09fc4bf5 100644 --- a/packages/frontend/src/components/MkAbuseReport.vue +++ b/packages/frontend/src/components/MkAbuseReport.vue @@ -6,8 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only