fix webhooks
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user