Skip to content

Commit 263a276

Browse files
Merge pull request #53922 from nextcloud/fix/noid/fed-share-on-local-reshare
2 parents cb7cab5 + fab6d92 commit 263a276

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@ private function shareAccepted($id, array $notification) {
309309

310310
$this->verifyShare($share, $token);
311311
$this->executeAcceptShare($share);
312-
if ($share->getShareOwner() !== $share->getSharedBy()) {
312+
313+
if ($share->getShareOwner() !== $share->getSharedBy()
314+
&& !$this->userManager->userExists($share->getSharedBy())) {
315+
// only if share was initiated from another instance
313316
[, $remote] = $this->addressHandler->splitUserRemote($share->getSharedBy());
314317
$remoteId = $this->federatedShareProvider->getRemoteId($share);
315318
$notification = $this->cloudFederationFactory->getCloudFederationNotification();

0 commit comments

Comments
 (0)