From 1926daa3c7df4b0ec307291cfaad3ad954d1d214 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 26 Dec 2024 11:19:33 -0600 Subject: [PATCH] MastodonResponse: use .passthrough() on errorSchema Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1801 --- src/api/MastodonResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/MastodonResponse.ts b/src/api/MastodonResponse.ts index b85fe7c49..6bd1a1ace 100644 --- a/src/api/MastodonResponse.ts +++ b/src/api/MastodonResponse.ts @@ -81,7 +81,7 @@ export class MastodonResponse extends Response { z.string(), z.object({ error: z.string(), description: z.string() }).array(), ).optional(), - }); + }).passthrough(); } }