diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-22 18:46:47 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-29 12:03:13 +0200 |
commit | eea7de4c9fc57e1a5c3e8c2f3b94200e7415cd10 (patch) | |
tree | 0275cd987792cc020717495203b08845e9f43085 /apps/files_sharing | |
parent | 141bee931f0e1f51cd81772c5ac60274bc0df8d7 (diff) | |
download | nextcloud-server-eea7de4c9fc57e1a5c3e8c2f3b94200e7415cd10.tar.gz nextcloud-server-eea7de4c9fc57e1a5c3e8c2f3b94200e7415cd10.zip |
Correctly format OCS response with favorites
The helper funtion did not handle the response correctly and basically
only returned the last share with tags.
This is a simple rewrite. That is still understandable. Loops maybe more
than strictly required. But preformance is not the issue here.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index c57a738457e..592deba1cf6 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -514,7 +514,7 @@ class ShareAPIController extends OCSController { } if ($includeTags) { - $formatted = Helper::populateTags($formatted, 'file_source'); + $formatted = Helper::populateTags($formatted, 'file_source', \OC::$server->getTagManager()); } return new DataResponse($formatted); @@ -644,7 +644,7 @@ class ShareAPIController extends OCSController { } if ($include_tags) { - $formatted = Helper::populateTags($formatted, 'file_source'); + $formatted = Helper::populateTags($formatted, 'file_source', \OC::$server->getTagManager()); } return new DataResponse($formatted); |