groupSchema: catch emojis

This commit is contained in:
Alex Gleason 2023-03-10 13:41:47 -06:00
parent 3d2331d20b
commit 6a2c64ae45
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -17,7 +17,7 @@ const groupSchema = z.object({
created_at: z.string().datetime().catch(new Date().toUTCString()), created_at: z.string().datetime().catch(new Date().toUTCString()),
display_name: z.string().catch(''), display_name: z.string().catch(''),
domain: z.string().catch(''), domain: z.string().catch(''),
emojis: filteredArray(customEmojiSchema), emojis: filteredArray(customEmojiSchema).catch([]),
group_visibility: z.string().catch(''), // TruthSocial group_visibility: z.string().catch(''), // TruthSocial
header: z.string().catch(headerMissing), header: z.string().catch(headerMissing),
header_static: z.string().catch(''), header_static: z.string().catch(''),