mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'fix-bio-number' into 'main'
fix: users can set their bio to a number Closes #184 See merge request soapbox-pub/ditto!574
This commit is contained in:
commit
40c24d927f
1 changed files with 2 additions and 2 deletions
|
|
@ -258,8 +258,8 @@ const accountStatusesController: AppController = async (c) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateCredentialsSchema = z.object({
|
const updateCredentialsSchema = z.object({
|
||||||
display_name: z.string().optional(),
|
display_name: z.coerce.string().optional(),
|
||||||
note: z.string().optional(),
|
note: z.coerce.string().optional(),
|
||||||
avatar: fileSchema.or(z.literal('')).optional(),
|
avatar: fileSchema.or(z.literal('')).optional(),
|
||||||
header: fileSchema.or(z.literal('')).optional(),
|
header: fileSchema.or(z.literal('')).optional(),
|
||||||
locked: z.boolean().optional(),
|
locked: z.boolean().optional(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue