Skip to content

Commit

Permalink
Merge pull request #50924 from nextcloud/backport/50922/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(files_sharing): Also list deleted team shares
  • Loading branch information
provokateurin authored Mar 4, 2025
2 parents e906134 + de99a25 commit 6860b5b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,12 @@ private function formatShare(IShare $share): array {
*/
public function index(): DataResponse {
$groupShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_GROUP, null, -1, 0);
$teamShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_CIRCLE, null, -1, 0);
$roomShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_ROOM, null, -1, 0);
$deckShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_DECK, null, -1, 0);
$sciencemeshShares = $this->shareManager->getDeletedSharedWith($this->userId, IShare::TYPE_SCIENCEMESH, null, -1, 0);

$shares = array_merge($groupShares, $roomShares, $deckShares, $sciencemeshShares);
$shares = array_merge($groupShares, $teamShares, $roomShares, $deckShares, $sciencemeshShares);

$shares = array_map(function (IShare $share) {
return $this->formatShare($share);
Expand Down

0 comments on commit 6860b5b

Please sign in to comment.