diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2025-07-21 19:01:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-21 19:01:47 +0200 |
commit | 263a276dbd77d8ad220741ffe6a73084ab0bace2 (patch) | |
tree | 996558444b1b5eb1542ee86916f84b2006c81588 | |
parent | cb7cab56b49f238b7946dadd5b3fb78d0a9fc6cc (diff) | |
parent | fab6d92f300dee076c2027c00ef982d2c13167bc (diff) | |
download | nextcloud-server-263a276dbd77d8ad220741ffe6a73084ab0bace2.tar.gz nextcloud-server-263a276dbd77d8ad220741ffe6a73084ab0bace2.zip |
Merge pull request #53922 from nextcloud/fix/noid/fed-share-on-local-reshare
-rw-r--r-- | apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php index 1cdcdbdd6d4..1ce639532e8 100644 --- a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php +++ b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php @@ -309,7 +309,10 @@ class CloudFederationProviderFiles implements ISignedCloudFederationProvider { $this->verifyShare($share, $token); $this->executeAcceptShare($share); - if ($share->getShareOwner() !== $share->getSharedBy()) { + + if ($share->getShareOwner() !== $share->getSharedBy() + && !$this->userManager->userExists($share->getSharedBy())) { + // only if share was initiated from another instance [, $remote] = $this->addressHandler->splitUserRemote($share->getSharedBy()); $remoteId = $this->federatedShareProvider->getRemoteId($share); $notification = $this->cloudFederationFactory->getCloudFederationNotification(); |