Skip to content

Conversation

@hweihwang
Copy link
Contributor

Backport of PR #45353 to stable29. Adds support for excalidraw file type, including mime type recognition and icon.

@hweihwang hweihwang requested review from blizzz and juliusknorr July 24, 2024 08:19
@solracsf solracsf changed the title Backport: Support excalidraw file type (#45353) [stable29] Support excalidraw file type Jul 24, 2024
@solracsf solracsf added the 3. to review Waiting for reviews label Jul 24, 2024
@solracsf solracsf added this to the Nextcloud 29.0.5 milestone Jul 24, 2024
Comment on lines 344 to 350
$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;
Copy link
Member

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.

@hweihwang hweihwang force-pushed the backport/45353/stable29 branch from bceae96 to d06e5d4 Compare July 25, 2024 10:00
@skjnldsv skjnldsv merged commit cea8c4c into stable29 Jul 27, 2024
@skjnldsv skjnldsv deleted the backport/45353/stable29 branch July 27, 2024 14:12
@Altahrim Altahrim mentioned this pull request Aug 8, 2024
9 tasks
$out->info('Fixed ReStructured Text mime type');
}

if (version_compare($mimeTypeVersion, '30.0.0.0', '<') && $this->introduceExcalidrawType()) {
Copy link
Member

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 29.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants