diff options
author | Joas Schilling <coding@schilljs.com> | 2019-03-14 12:30:34 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-19 13:06:55 +0100 |
commit | 3022ef687a7bef87fc8eff7e29a68d8cf64542e9 (patch) | |
tree | beba5dd9a6d407107a4f2d3b8b2fe07f503f55cf /core | |
parent | 403b673b93b98b7158838c232581ad221aeccd09 (diff) | |
download | nextcloud-server-3022ef687a7bef87fc8eff7e29a68d8cf64542e9.tar.gz nextcloud-server-3022ef687a7bef87fc8eff7e29a68d8cf64542e9.zip |
Use rich objects instead of name, link and icon
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/CollaborationResourcesController.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/Controller/CollaborationResourcesController.php b/core/Controller/CollaborationResourcesController.php index 3699746f735..0697444555c 100644 --- a/core/Controller/CollaborationResourcesController.php +++ b/core/Controller/CollaborationResourcesController.php @@ -241,12 +241,6 @@ class CollaborationResourcesController extends OCSController { return null; } - return [ - 'type' => $resource->getType(), - 'id' => $resource->getId(), - 'name' => $resource->getName(), - 'iconLink' => $resource->getIconLink(), - 'link' => $resource->getLink(), - ]; + return $resource->getRichObject(); } } |