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:
-rw-r--r--lib/Sabre/Album/PublicAlbumRoot.php8
-rw-r--r--src/views/PublicAlbumContent.vue5
2 files changed, 0 insertions, 13 deletions
diff --git a/lib/Sabre/Album/PublicAlbumRoot.php b/lib/Sabre/Album/PublicAlbumRoot.php
index 54ccaa87..f53c4a59 100644
--- a/lib/Sabre/Album/PublicAlbumRoot.php
+++ b/lib/Sabre/Album/PublicAlbumRoot.php
@@ -53,15 +53,7 @@ class PublicAlbumRoot extends AlbumRoot {
}
protected function addFile(int $sourceId, string $ownerUID): bool {
- // TODO: implement public album upload
throw new Forbidden('Not allowed to create a file in a public album');
-
- if (in_array($sourceId, $this->album->getFileIds())) {
- throw new Conflict("File $sourceId is already in the folder");
- }
-
- $this->albumMapper->addFile($this->album->getAlbum()->getId(), $sourceId, $ownerUID);
- return true;
}
// Do not reveal collaborators for public albums.
diff --git a/src/views/PublicAlbumContent.vue b/src/views/PublicAlbumContent.vue
index 6d263ad3..7511e521 100644
--- a/src/views/PublicAlbumContent.vue
+++ b/src/views/PublicAlbumContent.vue
@@ -38,11 +38,6 @@
:root-title="albumOriginalName"
:title="albumOriginalName"
@refresh="fetchAlbumContent">
- <!-- TODO: enable upload on public albums -->
- <!-- <UploadPicker :accept="allowedMimes"
- :destination="folder.filename"
- :multiple="true"
- @uploaded="onUpload" /> -->
<div v-if="album.location !== ''" slot="subtitle" class="album__location">
<MapMarker />{{ album.location }}
</div>