Merge pull request #53922 from nextcloud/fix/noid/fed-share-on-local-reshare

This commit is contained in:
Kate 2025-07-21 19:01:47 +02:00 committed by GitHub
commit 263a276dbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();