diff --git a/lib/Controller/RemoteAssetController.php b/lib/Controller/RemoteAssetController.php index fb2112bef5..b66b7cb439 100644 --- a/lib/Controller/RemoteAssetController.php +++ b/lib/Controller/RemoteAssetController.php @@ -25,6 +25,11 @@ class RemoteAssetController extends Controller { + public const SUPPORTED_PRESENTATION_MIMES = [ + 'application/vnd.oasis.opendocument.presentation', + 'application/vnd.oasis.opendocument.presentation-template', + ]; + public function __construct( string $appName, IRequest $request, @@ -114,7 +119,9 @@ private function getRemoteAssetData(bool $fontsOnly = false): array { ]), 'version' => $template->getEtag(), ]; - }, $this->templateManager->getSystem('presentation'))), + }, array_filter($this->templateManager->getSystem('presentation'), function ($template) { + return in_array($template->getMimeType(), self::SUPPORTED_PRESENTATION_MIMES, true); + }))), ]; return $data; diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php index b1709b3ebd..ee3a793a1a 100644 --- a/lib/TemplateManager.php +++ b/lib/TemplateManager.php @@ -29,16 +29,19 @@ class TemplateManager { /** Accepted templates mime types */ public const MIMES_DOCUMENTS = [ + 'application/vnd.oasis.opendocument.text', 'application/vnd.oasis.opendocument.text-template', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'application/msword' ]; public const MIMES_SHEETS = [ + 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.oasis.opendocument.spreadsheet-template', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'application/vnd.ms-excel' ]; public const MIMES_PRESENTATIONS = [ + 'application/vnd.oasis.opendocument.presentation', 'application/vnd.oasis.opendocument.presentation-template', 'application/vnd.openxmlformats-officedocument.presentationml.template', 'application/vnd.ms-powerpoint'