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:
Tobias Kaminsky 2022-09-21 08:28:03 +02:00 committed by GitHub
parent ebd28ef9e0
commit 5b3fb7a8ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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