aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorUnpublished <Unpublished@users.noreply.github.com>2024-01-01 18:56:07 +0100
committerAndy Scherzinger <info@andy-scherzinger.de>2024-02-27 14:44:23 +0100
commit4af1c5cb3349f442521a128b62ed7db95eb13749 (patch)
tree35214cd98efcca82c27d5b4dce44ef28393ba46d /lib/private
parent250084f8b913e326e20ccc60c86091beab0a6524 (diff)
downloadnextcloud-server-4af1c5cb3349f442521a128b62ed7db95eb13749.tar.gz
nextcloud-server-4af1c5cb3349f442521a128b62ed7db95eb13749.zip
Add .aac mime type mapping
Signed-off-by: Unpublished <Unpublished@users.noreply.github.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Repair/RepairMimeTypes.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php
index 4d15dda45dd..b204c27a9a2 100644
--- a/lib/private/Repair/RepairMimeTypes.php
+++ b/lib/private/Repair/RepairMimeTypes.php
@@ -246,6 +246,14 @@ class RepairMimeTypes implements IRepairStep {
return $this->updateMimetypes($updatedMimetypes);
}
+ private function introduceAacAudioType() {
+ $updatedMimetypes = [
+ 'aac' => 'audio/aac',
+ ];
+
+ return $this->updateMimetypes($updatedMimetypes);
+ }
+
/**
* Fix mime types
*/
@@ -310,5 +318,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '29.0.0.2', '<') && $this->introduceEmlAndMsgFormatType()) {
$out->info('Fixed eml and msg mime type');
}
+
+ if (version_compare($ocVersionFromBeforeUpdate, '29.0.0.6', '<') && $this->introduceAacAudioType()) {
+ $out->info('Fixed aac mime type');
+ }
}
}