aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2025-07-21 19:01:47 +0200
committerGitHub <noreply@github.com>2025-07-21 19:01:47 +0200
commit263a276dbd77d8ad220741ffe6a73084ab0bace2 (patch)
tree996558444b1b5eb1542ee86916f84b2006c81588
parentcb7cab56b49f238b7946dadd5b3fb78d0a9fc6cc (diff)
parentfab6d92f300dee076c2027c00ef982d2c13167bc (diff)
downloadnextcloud-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.php5
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();