From 537f9363b966f2b183c7b312c1299dba1c78bab8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 6 Jul 2025 16:15:40 -0500 Subject: fix regression in scripts and webhooks causing json to be missing detail --- src/slskd/Integrations/Webhooks/WebhookService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/slskd/Integrations/Webhooks/WebhookService.cs') diff --git a/src/slskd/Integrations/Webhooks/WebhookService.cs b/src/slskd/Integrations/Webhooks/WebhookService.cs index b08b0484..62739d7a 100644 --- a/src/slskd/Integrations/Webhooks/WebhookService.cs +++ b/src/slskd/Integrations/Webhooks/WebhookService.cs @@ -94,7 +94,10 @@ public class WebhookService } var content = new StringContent( - content: JsonSerializer.Serialize(data, JsonSerializerOptions), + content: JsonSerializer.Serialize( + value: data, + inputType: data.GetType(), // if omitted object is serialized as EventType, losing everything else + options: JsonSerializerOptions), encoding: Encoding.UTF8, mediaType: "application/json"); -- cgit v1.2.3