Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update apps/files_sharing/lib/Controller/ShareAPIController.php
Co-authored-by: Joas Schilling <[email protected]>
Signed-off-by: Tobias Kaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky and nickvergessen authored Sep 21, 2022
commit 5b3fb7a8ffccfddb5eaba2dcef9f974f066a6d44
6 changes: 4 additions & 2 deletions apps/files_sharing/lib/Controller/ShareAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,12 @@ public function getShare(string $id, bool $includeTags = false): DataResponse {
$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());

Check notice

Code scanning / Psalm

DeprecatedMethod

The method OC\Server::getTagManager has been marked as deprecated
} else {
$share = [$share];
}

return new DataResponse([$share]);
return new DataResponse($share);
}
} catch (NotFoundException $e) {
// Fall through
Expand Down