parent
8669ddd4a7
commit
df9bb37fbe
|
@ -36,7 +36,7 @@ class TimelineQuery
|
||||||
{
|
{
|
||||||
if (null === $this->_root) {
|
if (null === $this->_root) {
|
||||||
$this->_root = new TimelineRoot();
|
$this->_root = new TimelineRoot();
|
||||||
\OC::$server->get(FsManager::class)->populateRoot($this->_root);
|
$this->_root->populate();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->_root;
|
return $this->_root;
|
||||||
|
|
|
@ -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.
|
* Add a folder to the root.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue