From 6bc3ba80cdda0564b9a9adfb6beffb73cf4af97f Mon Sep 17 00:00:00 2001 From: provokateurin Date: Thu, 30 Jan 2025 17:16:53 +0100 Subject: [PATCH] fix(APIController): Allow self-test from any device Signed-off-by: provokateurin --- lib/Controller/APIController.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/Controller/APIController.php b/lib/Controller/APIController.php index d0f7d0aa6..8ffa0a69e 100644 --- a/lib/Controller/APIController.php +++ b/lib/Controller/APIController.php @@ -189,18 +189,6 @@ public function selfTestPush(): DataResponse { ); } - if (!$this->request->isUserAgent([ - IRequest::USER_AGENT_TALK_ANDROID, - IRequest::USER_AGENT_TALK_IOS, - IRequest::USER_AGENT_CLIENT_ANDROID, - IRequest::USER_AGENT_CLIENT_IOS, - ])) { - return new DataResponse( - ['message' => $this->l->t('The device does not seem to be supported')], - Http::STATUS_BAD_REQUEST, - ); - } - $notification = $this->notificationManager->createNotification(); $datetime = $this->timeFactory->getDateTime(); $isTalkApp = $this->request->isUserAgent([