fix webhooks

This commit is contained in:
2025-10-17 18:50:35 +02:00
parent f239255849
commit a27cf5f35b
2 changed files with 5 additions and 3 deletions

View File

@@ -196,11 +196,13 @@ export async function getReportByUrlHash(db: Database, values: GetReportByUrlHas
urlHash: report.urlHash,
reporter: {
id: reporter.id,
username: reporter.username
username: reporter.username,
uuid: reporter.uuid
},
reported: {
id: reported.id,
username: reported.username
username: reported.username,
uuid: reported.uuid
},
status: {
status: reportStatus.status,

View File

@@ -96,7 +96,7 @@ export const PUT: APIRoute = async ({ request }) => {
// send webhook in background
sendWebhook(WebhookAction.Strike, {
user: reported.uuid!
uuid: reported.uuid!
});
return new Response(null, { status: 200 });