Merge pull request #54031 from nextcloud/backport/53922/stable30

This commit is contained in:
Kate 2025-07-22 04:35:20 +02:00 committed by GitHub
commit e6f3d7cbbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -281,7 +281,10 @@ class CloudFederationProviderFiles implements ICloudFederationProvider {
$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();