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>
pull/34133/head
Tobias Kaminsky 3 years ago committed by GitHub
parent ebd28ef9e0
commit 5b3fb7a8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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

Loading…
Cancel
Save