mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: also use optimized getFirstNodeyIdInPath for Folder::getFirstNodeById
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
9c4b959690
commit
ffced73a71
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue