More refactor

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-03-23 22:01:49 -07:00
parent 8669ddd4a7
commit df9bb37fbe
2 changed files with 9 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class TimelineQuery
{
if (null === $this->_root) {
$this->_root = new TimelineRoot();
\OC::$server->get(FsManager::class)->populateRoot($this->_root);
$this->_root->populate();
}
return $this->_root;

View File

@ -17,6 +17,14 @@ class TimelineRoot
{
}
/**
* Populate the root with the current user's folders.
*/
public function populate()
{
\OC::$server->get(FsManager::class)->populateRoot($this);
}
/**
* Add a folder to the root.
*