Merge pull request #50922 from nextcloud/fix/show-deleted-team-shares

This commit is contained in:
Kate 2025-02-20 15:57:37 +01:00 committed by GitHub
commit 4f50b5f337
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -142,11 +142,12 @@ class DeletedShareAPIController extends OCSController {
#[NoAdminRequired]
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_values(array_map(function (IShare $share) {
return $this->formatShare($share);