mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix: users can set their display_name to a number
This commit is contained in:
parent
0a7c0c60a9
commit
94431fadcd
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ const accountStatusesController: AppController = async (c) => {
|
|||
};
|
||||
|
||||
const updateCredentialsSchema = z.object({
|
||||
display_name: z.string().optional(),
|
||||
display_name: z.coerce.string().optional(),
|
||||
note: z.coerce.string().optional(),
|
||||
avatar: fileSchema.or(z.literal('')).optional(),
|
||||
header: fileSchema.or(z.literal('')).optional(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue