Merge pull request #54479 from nextcloud/fix/files_sharing/shared-with-me-hide-own-reshares

pull/54482/head
Kate 2025-08-18 12:40:28 +07:00 committed by GitHub
commit d300e32c06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -867,7 +867,7 @@ class ShareAPIController extends OCSController {
$shares = array_merge($userShares, $groupShares, $circleShares, $roomShares, $deckShares, $sciencemeshShares);
$filteredShares = array_filter($shares, function (IShare $share) {
return $share->getShareOwner() !== $this->userId;
return $share->getShareOwner() !== $this->userId && $share->getSharedBy() !== $this->userId;
});
$formatted = [];