Skip to content

Commit

Permalink
feat: support excalidraw file
Browse files Browse the repository at this point in the history
Signed-off-by: Hoang Pham <hoangmaths96@gmail.com>
  • Loading branch information
hweihwang committed Jul 25, 2024
1 parent cae18a8 commit d06e5d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/files/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Files</name>
<summary>File Management</summary>
<description>File Management</description>
<version>2.1.0</version>
<version>2.1.1</version>
<licence>agpl</licence>
<author>John Molakvoæ</author>
<author>Robin Appelman</author>
Expand Down
10 changes: 4 additions & 6 deletions lib/private/Repair/RepairMimeTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,11 @@ public function migrationsAvailable(): bool {
}

private function getMimeTypeVersion(): string {
$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');
$mimeVersion = $this->config->getAppValue('files', 'mimetype_version', '');
if ($mimeVersion) {
return $mimeVersion;
}

return $serverVersion;
return $this->config->getSystemValueString('version', '0.0.0');
}

/**
Expand Down

0 comments on commit d06e5d4

Please sign in to comment.