mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Fix: Added missing index.php to photos api url
This commit is contained in:
parent
efb32a785a
commit
77539aaa52
1 changed files with 2 additions and 2 deletions
|
@ -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)}";
|
||||
|
|
Loading…
Reference in a new issue