mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Coerce only_media to a boolean again
This commit is contained in:
parent
83347df845
commit
8693dd0e5d
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ const accountStatusesQuerySchema = z.object({
|
||||||
limit: z.coerce.number().nonnegative().transform((v) => Math.min(v, 40)).catch(20),
|
limit: z.coerce.number().nonnegative().transform((v) => Math.min(v, 40)).catch(20),
|
||||||
exclude_replies: booleanParamSchema.optional(),
|
exclude_replies: booleanParamSchema.optional(),
|
||||||
tagged: z.string().optional(),
|
tagged: z.string().optional(),
|
||||||
only_media: z.boolean().optional(),
|
only_media: z.coerce.boolean().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const accountStatusesController: AppController = async (c) => {
|
const accountStatusesController: AppController = async (c) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue