mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
feat(federated-share): forward notification only on remote reshare
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
30fb9e3c5a
commit
fab6d92f30
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