diff --git a/lib/Controller/APIv2Controller.php b/lib/Controller/APIv2Controller.php index cc0158019..2703ccc4e 100644 --- a/lib/Controller/APIv2Controller.php +++ b/lib/Controller/APIv2Controller.php @@ -184,7 +184,7 @@ protected function get($filter, $since, $limit, $previews, $filterObjectType, $f return new DataResponse([], Http::STATUS_FORBIDDEN); } - $this->activityManager->setRequirePNG($this->request->isUserAgent([IRequest::USER_AGENT_CLIENT_IOS])); + $this->activityManager->setRequirePNG(false); try { $response = $this->data->get( $this->helper, diff --git a/tests/Controller/APIv1ControllerTest.php b/tests/Controller/APIv1ControllerTest.php index e7c73c88c..7c5f39fd9 100644 --- a/tests/Controller/APIv1ControllerTest.php +++ b/tests/Controller/APIv1ControllerTest.php @@ -208,7 +208,8 @@ public function testGet(string $user, int $start, int $count, array $expected): $this->createMock(IUserSession::class), $config, \OC::$server->query(IValidator::class), - $this->createMock(IL10N::class) + \OC::$server->query(\OCP\RichObjectStrings\IRichTextFormatter::class), + $this->createMock(IL10N::class), ); $activityManager->registerProvider(Provider::class); $activityManager->registerSetting(Setting1::class);