mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'admin-report-mark-as-resolved' into 'main'
Delete report with createAdminEvent() instead of createEvent() See merge request soapbox-pub/ditto!231
This commit is contained in:
commit
e879f1a21f
1 changed files with 2 additions and 2 deletions
|
|
@ -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.',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue