mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
webpush: enforce endpoint as a URL
This commit is contained in:
parent
3fa12e3ba5
commit
b6925a5491
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import { getTokenHash } from '@/utils/auth.ts';
|
|||
|
||||
const pushSubscribeSchema = z.object({
|
||||
subscription: z.object({
|
||||
endpoint: z.string(),
|
||||
endpoint: z.string().url(),
|
||||
keys: z.object({
|
||||
p256dh: z.string(),
|
||||
auth: z.string(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue