Skip to content

Commit

Permalink
fix(APIController): Allow self-test from any device
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin authored and nickvergessen committed Jan 31, 2025
1 parent a77e777 commit 4c80910
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/Controller/APIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 4c80910

Please sign in to comment.