diff options
author | Tobias Kaminsky <tobias@kaminsky.me> | 2022-09-21 08:28:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 08:28:03 +0200 |
commit | 5b3fb7a8ffccfddb5eaba2dcef9f974f066a6d44 (patch) | |
tree | 074b47bd9f09f64738adc079db733708f6d010a6 /apps/files_sharing | |
parent | ebd28ef9e031403e7e8fd8c108fc8d458365612d (diff) | |
download | nextcloud-server-5b3fb7a8ffccfddb5eaba2dcef9f974f066a6d44.tar.gz nextcloud-server-5b3fb7a8ffccfddb5eaba2dcef9f974f066a6d44.zip |
Update apps/files_sharing/lib/Controller/ShareAPIController.php
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 81145408aa2..d795318cb8b 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -382,10 +382,12 @@ class ShareAPIController extends OCSController { $share = $this->formatShare($share); if ($includeTags) { - $share = Helper::populateTags(array($share), 'file_source', \OC::$server->getTagManager()); + $share = Helper::populateTags([$share], 'file_source', \OC::$server->getTagManager()); + } else { + $share = [$share]; } - return new DataResponse([$share]); + return new DataResponse($share); } } catch (NotFoundException $e) { // Fall through |