Skip to content

Commit

Permalink
Merge pull request #46035 from nextcloud/backport/46017/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: also use optimized getFirstNodeyIdInPath for Folder::getFirstNodeById
  • Loading branch information
AndyScherzinger authored Jul 10, 2024
2 parents f22f127 + bf8a73c commit 0f33283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Node/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public function getById($id) {
}

public function getFirstNodeById(int $id): ?\OCP\Files\Node {
return current($this->getById($id)) ?: null;
return $this->root->getFirstNodeByIdInPath($id, $this->getPath());
}

protected function getAppDataDirectoryName(): string {
Expand Down

0 comments on commit 0f33283

Please sign in to comment.