mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 👽 Ignore what the Mastodon docs say, they're wrong
This commit is contained in:
parent
5d64ecd04f
commit
cde2836982
5 changed files with 35 additions and 27 deletions
|
|
@ -24,20 +24,19 @@ export const WebPushSubscriptionInput = z
|
|||
})
|
||||
.strict(),
|
||||
}),
|
||||
policy: z
|
||||
.enum(["all", "followed", "follower", "none"])
|
||||
.default("all")
|
||||
.openapi({
|
||||
description:
|
||||
"Specify whether to receive push notifications from all, followed, follower, or none users.",
|
||||
}),
|
||||
data: z
|
||||
.object({
|
||||
policy: z
|
||||
.enum(["all", "followed", "follower", "none"])
|
||||
.default("all")
|
||||
.openapi({
|
||||
description:
|
||||
"Specify whether to receive push notifications from all, followed, follower, or none users.",
|
||||
}),
|
||||
alerts: PushSubscription.schema.shape.alerts,
|
||||
})
|
||||
.strict()
|
||||
.default({
|
||||
policy: "all",
|
||||
alerts: {
|
||||
mention: false,
|
||||
favourite: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue