Only display HTML if supported

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-05-17 23:30:57 +02:00
parent c4d085c767
commit d30d276a0f
2 changed files with 15 additions and 9 deletions

View File

@ -114,6 +114,7 @@ const pleromaSchema = coerceObject({
.optional(),
enabled: z.boolean().catch(false),
}),
post_formats: z.string().array().optional().catch(undefined),
restrict_unauthenticated: coerceObject({
activities: coerceObject({
local: z.boolean().catch(false),