aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2025-07-11 23:02:03 +0200
committerMaxence Lange <maxence@artificial-owl.com>2025-07-21 13:37:33 -0100
commitfab6d92f300dee076c2027c00ef982d2c13167bc (patch)
tree7654af69f42481f8b2f72816c36093567a71f950
parent30fb9e3c5a91d8509f2c0c3299b51dd09069b45b (diff)
downloadnextcloud-server-fab6d92f300dee076c2027c00ef982d2c13167bc.tar.gz
nextcloud-server-fab6d92f300dee076c2027c00ef982d2c13167bc.zip
feat(federated-share): forward notification only on remote resharefix/noid/fed-share-on-local-reshare
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php
index 1cdcdbdd6d4..1ce639532e8 100644
--- a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php
+++ b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php
@@ -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();