From 140c381dc4b0d231a0eeab487e545f6c38d559a2 Mon Sep 17 00:00:00 2001 From: Arne Hamann Date: Sun, 2 Jul 2023 02:14:47 +0200 Subject: [PATCH] Attempt fix 1033 Signed-off-by: Arne Hamann --- lib/Controller/PublicPhotosController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/PublicPhotosController.php b/lib/Controller/PublicPhotosController.php index 654ac5c9f..a308c5888 100644 --- a/lib/Controller/PublicPhotosController.php +++ b/lib/Controller/PublicPhotosController.php @@ -129,7 +129,7 @@ public function getPhotos(): DataResponse { $photo_object->isCreatable = ($permissions & (1 << 2)) && $photo['isCreatable']; $photo_object->isUpdateable = ($permissions & (1 << 1)) && $photo['isUpdateable']; $photo_object->isDeletable = ($permissions & (1 << 3)) && $photo['isDeletable']; - $photo_object->path = $folder->getRelativePath($pre_path.$photo['path']); + $photo_object->path = $folder->getRelativePath($pre_path.$photo_object->path); $photo_object->filename = $photo_object->path; return $photo_object; }, $result);