diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 8268cdec9bc3c..3433f726d042d 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -863,7 +863,7 @@ private function getSharedWithMe($node, bool $includeTags): array { $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 = [];