fix RN mobile api

This commit is contained in:
murdle 2025-12-20 17:47:44 +02:00
parent 39af99fa6e
commit 818358cc68

View File

@ -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);