A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(schema): keep template topics optional after trimming (#3247)
Hampusd7c00d455604
diff --git a/packages/schema/src/domains/guild/GuildTemplateSchemas.ts b/packages/schema/src/domains/guild/GuildTemplateSchemas.tsindex 705563325..e7494673a 100644--- a/packages/schema/src/domains/guild/GuildTemplateSchemas.ts+++ b/packages/schema/src/domains/guild/GuildTemplateSchemas.ts@@ -61,8 +61,8 @@ export const TemplateChannel = z.object({topic: z.string().max(TEMPLATE_TOPIC_MAX_LENGTH)+ .transform(clipTopic).nullish()- .transform((value) => (value == null ? value : clipTopic(value))).describe('The channel topic, shortened to the Fluxer channel topic limit'),position: Int32Type.describe('The position of the channel'),parent_id: TemplateEntityId.nullish().describe('The template-local ID of the parent category'),