Skip to content

Commit

Permalink
Merge pull request #3200 from nextcloud/backport/3184/stable27
Browse files Browse the repository at this point in the history
[stable27] fix: Mobile support shall be enabled by default
  • Loading branch information
szaimen authored Oct 6, 2023
2 parents 14fbbe3 + daa703b commit abd5f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit abd5f46

Please sign in to comment.