feat(federated-share): forward notification only on remote reshare

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/54032/head
Maxence Lange 2025-07-11 23:02:03 +07:00 committed by backportbot[bot]
parent 98c89e38de
commit bf6faa30a8
1 changed files with 4 additions and 1 deletions

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