Merge pull request #46017 from nextcloud/get-first-node-by-id-folder

fix: also use optimized getFirstNodeyIdInPath for Folder::getFirstNodeById
This commit is contained in:
Robin Appelman 2024-06-21 12:27:53 +02:00 committed by GitHub
commit da8e1c192d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -289,7 +289,7 @@ class Folder extends Node implements \OCP\Files\Folder {
}
public function getFirstNodeById(int $id): ?\OCP\Files\Node {
return current($this->getById($id)) ?: null;
return $this->root->getFirstNodeByIdInPath($id, $this->getPath());
}
public function getAppDataDirectoryName(): string {