Skip to content

Commit

Permalink
Merge pull request #1851 from nextcloud/artonge/fix/update_file_from_…
Browse files Browse the repository at this point in the history
…album

[stable25] Fix updating file from albums
  • Loading branch information
artonge authored Jun 6, 2023
2 parents 4281371 + 3dfa408 commit 4830783
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Sabre/Album/AlbumPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public function getLastModified() {
}

public function put($data) {
$nodes = $this->userFolder->getById($this->file->getFileId());
$nodes = $this->rootFolder
->getUserFolder($this->albumFile->getOwner() ?: $this->album->getUserId())
->getById($this->albumFile->getFileId());
$node = current($nodes);
if ($node) {
/** @var Node $node */
Expand Down

0 comments on commit 4830783

Please sign in to comment.