From e8b690e2626b01a8cd417d576fe4f074075b7e7a Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Wed, 8 May 2024 10:32:10 -0300 Subject: [PATCH] fix(admin resolve): create admin event instead of create normal event --- src/controllers/api/reports.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/reports.ts b/src/controllers/api/reports.ts index d363630..24e314d 100644 --- a/src/controllers/api/reports.ts +++ b/src/controllers/api/reports.ts @@ -3,7 +3,7 @@ import { z } from 'zod'; import { type AppController } from '@/app.ts'; import { Conf } from '@/config.ts'; -import { createEvent, parseBody } from '@/utils/api.ts'; +import { createAdminEvent, createEvent, parseBody } from '@/utils/api.ts'; import { hydrateEvents } from '@/storages/hydrate.ts'; import { renderAdminReport } from '@/views/mastodon/reports.ts'; import { renderReport } from '@/views/mastodon/reports.ts'; @@ -107,7 +107,7 @@ const adminReportResolveController: AppController = async (c) => { await hydrateEvents({ events: [event], storage: store, signal }); - await createEvent({ + await createAdminEvent({ kind: 5, tags: [['e', event.id]], content: 'Report closed.',