mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
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>
This commit is contained in:
parent
ebd28ef9e0
commit
5b3fb7a8ff
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Reference in a new issue