Skip to content

Commit d300e32

Browse files
Merge pull request #54479 from nextcloud/fix/files_sharing/shared-with-me-hide-own-reshares
2 parents 2d659b2 + 37175e0 commit d300e32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ private function getSharedWithMe($node, bool $includeTags): array {
867867
$shares = array_merge($userShares, $groupShares, $circleShares, $roomShares, $deckShares, $sciencemeshShares);
868868

869869
$filteredShares = array_filter($shares, function (IShare $share) {
870-
return $share->getShareOwner() !== $this->userId;
870+
return $share->getShareOwner() !== $this->userId && $share->getSharedBy() !== $this->userId;
871871
});
872872

873873
$formatted = [];

0 commit comments

Comments
 (0)