From 6a2c64ae45ca63962ecc5a7bab474b11724162e2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 10 Mar 2023 13:41:47 -0600 Subject: [PATCH] groupSchema: catch emojis --- app/soapbox/schemas/group.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/schemas/group.ts b/app/soapbox/schemas/group.ts index 964831c1d0..f735f4e872 100644 --- a/app/soapbox/schemas/group.ts +++ b/app/soapbox/schemas/group.ts @@ -17,7 +17,7 @@ const groupSchema = z.object({ created_at: z.string().datetime().catch(new Date().toUTCString()), display_name: z.string().catch(''), domain: z.string().catch(''), - emojis: filteredArray(customEmojiSchema), + emojis: filteredArray(customEmojiSchema).catch([]), group_visibility: z.string().catch(''), // TruthSocial header: z.string().catch(headerMissing), header_static: z.string().catch(''),