fix(files_sharing): Also hide own reshares in shared with me section

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-08-18 11:38:05 +02:00
parent 30e30c623a
commit bc33cc5190
No known key found for this signature in database

View file

@ -826,7 +826,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->currentUser;
return $share->getShareOwner() !== $this->currentUser && $share->getSharedBy() !== $this->currentUser;
});
$formatted = [];