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);