mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-25 00:14:42 +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
|
// 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
|
// not create a file share for photos not belonging to you, that means you
|
||||||
// can only access the file view the Photos API
|
// 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 {
|
} else {
|
||||||
if (file_util.isTrash(account, file)) {
|
if (file_util.isTrash(account, file)) {
|
||||||
// trashbin does not support preview.png endpoint
|
// trashbin does not support preview.png endpoint
|
||||||
|
@ -90,7 +90,7 @@ String getPhotosApiFilePreviewUrlByFileId(
|
||||||
required int width,
|
required int width,
|
||||||
required int height,
|
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) {
|
String getFileUrl(Account account, FileDescriptor file) {
|
||||||
return "${account.url}/${getFileUrlRelative(file)}";
|
return "${account.url}/${getFileUrlRelative(file)}";
|
||||||
|
|
Loading…
Add table
Reference in a new issue