mirror of
https://github.com/nextcloud/server.git
synced 2026-03-20 09:32:35 -04:00
Merge pull request #53922 from nextcloud/fix/noid/fed-share-on-local-reshare
This commit is contained in:
commit
263a276dbd
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue