From bc33cc5190dd2505c444a484fee7809a21187d75 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 18 Aug 2025 11:38:05 +0200 Subject: [PATCH] fix(files_sharing): Also hide own reshares in shared with me section Signed-off-by: provokateurin --- apps/files_sharing/lib/Controller/ShareAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index d11834e1e07c0..7725fabbb32ec 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -826,7 +826,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->currentUser; + return $share->getShareOwner() !== $this->currentUser && $share->getSharedBy() !== $this->currentUser; }); $formatted = [];