From 818358cc68ca4538ba80a1524a61856dad4122c8 Mon Sep 17 00:00:00 2001 From: murdle Date: Sat, 20 Dec 2025 17:47:44 +0200 Subject: [PATCH] fix RN mobile api --- src/api/routes/users/@me/devices.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);