fix: schema init, duplicate routes, and image preview bugs

- Move pg_trgm extension creation before CalDAV indexes that depend on it
- Remove duplicate app-password route registration that caused panic
- Fix missing comma in language selector array (Dutch entry)
- Await async canEdit() in file click handler (Promise was always truthy)
- Detect images by extension fallback when mime_type is octet-stream
  (files uploaded via Nextcloud WebDAV API lack correct mime types)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
zjean
2026-03-04 15:14:07 +01:00
parent 54eedf5483
commit 40b269c4eb
7 changed files with 20 additions and 28 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ function getAvailableLanguages() {
{ code: 'fr', name: 'Français', flag: '🇫🇷' },
{ code: 'de', name: 'Deutsch', flag: '🇩🇪' },
{ code: 'pt', name: 'Português', flag: '🇧🇷' },
{ code: 'it', name: 'Italiano', flag: '🇮🇹' }
{ code: 'it', name: 'Italiano', flag: '🇮🇹' },
{ code: 'nl', name: 'Nederlands', flag: '🇳🇱' }
];
}