summaryrefslogtreecommitdiffstats
path: root/lib/Federation/BackendNotifier.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-03-25 14:07:19 +0100
committerJoas Schilling <coding@schilljs.com>2024-03-25 16:32:09 +0100
commita5b1eb6692f3914ddecb5ecb4e8bdd94a5616a5c (patch)
treed22cab7f05b05fa625ab5dacc47d159b399d02d7 /lib/Federation/BackendNotifier.php
parentb1c6fc3ebd35242b8e1770219e3d15caa5a81ae8 (diff)
fix(federation): Prevent duplicated invites with different casing and heal the cloudId
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Federation/BackendNotifier.php')
-rw-r--r--lib/Federation/BackendNotifier.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Federation/BackendNotifier.php b/lib/Federation/BackendNotifier.php
index a70d8e4be..83f11e934 100644
--- a/lib/Federation/BackendNotifier.php
+++ b/lib/Federation/BackendNotifier.php
@@ -148,6 +148,7 @@ class BackendNotifier {
#[SensitiveParameter]
string $accessToken,
string $displayName,
+ string $cloudId,
): bool {
$remote = $this->prepareRemoteUrl($remoteServerUrl);
@@ -161,6 +162,7 @@ class BackendNotifier {
'sharedSecret' => $accessToken,
'message' => 'Recipient accepted the share',
'displayName' => $displayName,
+ 'cloudId' => $cloudId,
]
);