Skip to content

Commit 410098d

Browse files
Merge pull request #54032 from nextcloud/backport/53922/stable31
2 parents f67e634 + bf6faa3 commit 410098d

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
@@ -308,7 +308,10 @@ private function shareAccepted($id, array $notification) {
308308

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

0 commit comments

Comments
 (0)