From daa703b12ba7b3d62ac9453984534c4f02750ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sun, 17 Sep 2023 17:44:51 +0200 Subject: [PATCH] fix: Mobile support shall be enabled by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl Signed-off-by: Simon L --- lib/Capabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Capabilities.php b/lib/Capabilities.php index 45e9bdd5f6..e921f231be 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -125,7 +125,7 @@ public function getCapabilities() { 'mimetypes' => array_values($filteredMimetypes), 'mimetypesNoDefaultOpen' => array_values($optionalMimetypes), 'collabora' => $collaboraCapabilities, - 'direct_editing' => isset($collaboraCapabilities['hasMobileSupport']) && $this->config->getAppValue('mobile_editing') ?: false, + 'direct_editing' => ($collaboraCapabilities['hasMobileSupport'] ?? false) && $this->config->getAppValue('mobile_editing', 'yes') === 'yes', 'templates' => isset($collaboraCapabilities['hasTemplateSaveAs']) || isset($collaboraCapabilities['hasTemplateSource']) ?: false, 'productName' => $this->capabilitiesService->getProductName(), 'editonline_endpoint' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.document.editOnline'),