From 7b7d46456ef710667b989eccc7a8515b66cc155e Mon Sep 17 00:00:00 2001 From: Milen Pivchev Date: Thu, 19 Sep 2024 16:53:21 +0200 Subject: [PATCH 1/2] Change flag Signed-off-by: Milen Pivchev --- lib/Controller/APIv2Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From a6808ab3722e437d2007f50b5ee93898510b39f0 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Fri, 20 Sep 2024 10:14:50 +0200 Subject: [PATCH 2/2] fix(test): Add missing parameter for ActivityManager constructor Signed-off-by: Louis Chemineau Signed-off-by: Milen Pivchev --- tests/Controller/APIv1ControllerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);