diff --git a/src/api/routes/users/@me/devices.ts b/src/api/routes/users/@me/devices.ts index 44f240fe..89199375 100644 --- a/src/api/routes/users/@me/devices.ts +++ b/src/api/routes/users/@me/devices.ts @@ -38,7 +38,7 @@ router.post( async (req: Request, res: Response) => { const body = req.body as DeviceNotificationSchema; if (body.provider != "webpush") - throw new HTTPError("Provider is not supported", 400); + return res.sendStatus(204); if (!Config.get().webPush.enabled || !vapidConfigured) throw new HTTPError("WebPush notifications are not configured", 400);