Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-14 14:30:34 +0300
committerJulius Härtl <jus@bitgrid.net>2019-03-19 15:06:55 +0300
commit3022ef687a7bef87fc8eff7e29a68d8cf64542e9 (patch)
treebeba5dd9a6d407107a4f2d3b8b2fe07f503f55cf /core
parent403b673b93b98b7158838c232581ad221aeccd09 (diff)
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.php8
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();
}
}