Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sabre/Album/AlbumPhoto.php')
-rw-r--r--lib/Sabre/Album/AlbumPhoto.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Sabre/Album/AlbumPhoto.php b/lib/Sabre/Album/AlbumPhoto.php
index 88985139..5bd31830 100644
--- a/lib/Sabre/Album/AlbumPhoto.php
+++ b/lib/Sabre/Album/AlbumPhoto.php
@@ -51,7 +51,7 @@ class AlbumPhoto implements IFile {
}
public function getName() {
- return $this->file->getName();
+ return $this->file->getFileId() . "-" . $this->file->getName();
}
public function setName($name) {
@@ -92,4 +92,8 @@ class AlbumPhoto implements IFile {
public function getSize() {
return $this->file->getSize();
}
+
+ public function getFile(): AlbumFile {
+ return $this->file;
+ }
}