From 794cc3d8032f87dcb8a4c905d60fdea8e14e8587 Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Thu, 3 Dec 2020 14:22:39 +0100 Subject: [PATCH] repair text/org MIME types Signed-off-by: nik gaffney --- lib/private/Repair/RepairMimeTypes.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php index c5157f8161..ecf4623648 100644 --- a/lib/private/Repair/RepairMimeTypes.php +++ b/lib/private/Repair/RepairMimeTypes.php @@ -192,6 +192,15 @@ class RepairMimeTypes implements IRepairStep { return $this->updateMimetypes($updatedMimetypes); } + private function introduceOrgModeType() { + $updatedMimetypes = [ + 'org' => 'text/org' + ]; + + return $this->updateMimetypes($updatedMimetypes); + } + + /** * Fix mime types */ @@ -232,5 +241,9 @@ class RepairMimeTypes implements IRepairStep { if (version_compare($ocVersionFromBeforeUpdate, '20.0.0.5', '<') && $this->introduceOpenDocumentTemplates()) { $out->info('Fixed OpenDocument template mime types'); } + + if (version_compare($ocVersionFromBeforeUpdate, '21.0.0.7', '<') && $this->introduceOrgModeType()) { + $out->info('Fixed orgmode mime types'); + } } }