From 88c1b3d0185824013519fbaef97a32afa56c9d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 28 Oct 2024 00:14:15 +0100 Subject: [PATCH] pl-api: update instance schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-api/lib/entities/instance.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/pl-api/lib/entities/instance.ts b/packages/pl-api/lib/entities/instance.ts index efc68aa32..d61a8d3b0 100644 --- a/packages/pl-api/lib/entities/instance.ts +++ b/packages/pl-api/lib/entities/instance.ts @@ -270,7 +270,6 @@ const instanceV1Schema = coerceObject({ description_limit: v.fallback(v.number(), 1500), email: v.fallback(v.pipe(v.string(), v.email()), ''), feature_quote: v.fallback(v.boolean(), false), - fedibird_capabilities: v.fallback(v.array(v.string()), []), languages: v.fallback(v.array(v.string()), []), max_media_attachments: v.fallback(v.optional(v.number()), undefined), max_toot_chars: v.fallback(v.optional(v.number()), undefined), @@ -314,6 +313,10 @@ const instanceSchema = v.pipe( description: v.fallback(v.string(), ''), domain: v.fallback(v.string(), ''), feature_quote: v.fallback(v.boolean(), false), + icons: filteredArray(v.object({ + size: v.pipe(v.string(), v.regex(/^[0-9]+x[0-9]+$/)), + src: v.string(), + })), languages: v.fallback(v.array(v.string()), []), pleroma: pleromaSchema, registrations: registrations,