]> source.dussan.org Git - nextcloud-server.git/commitdiff
repair text/org MIME types 24488/head
authornik gaffney <nik@fo.am>
Thu, 3 Dec 2020 13:22:39 +0000 (14:22 +0100)
committernik gaffney <nik@fo.am>
Fri, 11 Dec 2020 17:21:33 +0000 (18:21 +0100)
Signed-off-by: nik gaffney <nik@fo.am>
lib/private/Repair/RepairMimeTypes.php

index c5157f81612416713b87a5cbc6ad6f136ee234fc..ecf46236483db677f2e56dd1a452fef60b9febf4 100644 (file)
@@ -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');
+               }
        }
 }