From 77539aaa5260da6919558e44cbe6a820d385d0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jirka=20Stehl=C3=ADk?= Date: Tue, 7 May 2024 15:56:35 +0000 Subject: [PATCH] Fix: Added missing index.php to photos api url --- app/lib/api/api_util.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/api/api_util.dart b/app/lib/api/api_util.dart index 9f7a722e..cbe0218a 100644 --- a/app/lib/api/api_util.dart +++ b/app/lib/api/api_util.dart @@ -46,7 +46,7 @@ String getFilePreviewUrlRelative( // We can't use the generic file preview url because collaborative albums do // not create a file share for photos not belonging to you, that means you // can only access the file view the Photos API - url = "apps/photos/api/v1/preview/${file.fdId}?x=$width&y=$height"; + url = "index.php/apps/photos/api/v1/preview/${file.fdId}?x=$width&y=$height"; } else { if (file_util.isTrash(account, file)) { // trashbin does not support preview.png endpoint @@ -90,7 +90,7 @@ String getPhotosApiFilePreviewUrlByFileId( required int width, required int height, }) => - "${account.url}/apps/photos/api/v1/preview/$fileId?x=$width&y=$height"; + "${account.url}/index.php/apps/photos/api/v1/preview/$fileId?x=$width&y=$height"; String getFileUrl(Account account, FileDescriptor file) { return "${account.url}/${getFileUrlRelative(file)}";