-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable28] Support excalidraw file type #46712
Conversation
if (version_compare($mimeTypeVersion, '29.0.0.6', '<') && $this->introduceAacAudioType()) { | ||
$out->info('Fixed aac mime type'); | ||
} | ||
|
||
if (version_compare($mimeTypeVersion, '29.0.0.10', '<') && $this->introduceReStructuredTextFormatType()) { | ||
$out->info('Fixed ReStructured Text mime type'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can skip those in the backport.
$serverVersion = $this->config->getSystemValueString('version', '0.0.0'); | ||
// 29.0.0.10 is the last version with a mimetype migration before it was moved to a separate version number | ||
if (version_compare($serverVersion, '29.0.0.10', '>')) { | ||
return $this->config->getAppValue('files', 'mimetype_version', '29.0.0.10'); | ||
} | ||
return $this->config->getSystemValueString('version', '0.0.0'); | ||
|
||
return $serverVersion; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can keep the existing logic and just increase the patch version in apps/files/appinfo/info.xml by one.
Signed-off-by: Hoang Pham <hoangmaths96@gmail.com>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Hoang Pham <hoangmaths96@gmail.com>
1c8fd1b
to
da0353d
Compare
@@ -330,6 +394,10 @@ public function run(IOutput $out) { | |||
$out->info('Fixed eml and msg mime type'); | |||
} | |||
|
|||
if (version_compare($mimeTypeVersion, '30.0.0.0', '<') && $this->introduceExcalidrawType()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have been adjusted to 28.0.9
Backport of PR #45353 to stable28. Adds support for excalidraw file type, including mime type recognition and icon.