aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-06-26 10:40:31 +0200
committerJoas Schilling <coding@schilljs.com>2024-06-27 11:26:08 +0200
commit280d70a5f42309b28df0baf675893abed2a391a2 (patch)
treed13cfa72cc6958f85eea11322cfa9c89d164b7d2 /lib/private/Collaboration
parent5dcb807a98a9863f7d730c3f190e85311eda512b (diff)
downloadnextcloud-server-280d70a5f42309b28df0baf675893abed2a391a2.tar.gz
nextcloud-server-280d70a5f42309b28df0baf675893abed2a391a2.zip
fix(federation): Fix missing protocol on CloudID remote
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Collaborators/RemotePlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/RemotePlugin.php b/lib/private/Collaboration/Collaborators/RemotePlugin.php
index e46b71eb710..788ece70cb9 100644
--- a/lib/private/Collaboration/Collaborators/RemotePlugin.php
+++ b/lib/private/Collaboration/Collaborators/RemotePlugin.php
@@ -157,7 +157,7 @@ class RemotePlugin implements ISearchPlugin {
public function splitUserRemote(string $address): array {
try {
$cloudId = $this->cloudIdManager->resolveCloudId($address);
- return [$cloudId->getUser(), $cloudId->getRemote()];
+ return [$cloudId->getUser(), $this->cloudIdManager->removeProtocolFromUrl($cloudId->getRemote(), true)];
} catch (\InvalidArgumentException $e) {
throw new \InvalidArgumentException('Invalid Federated Cloud ID', 0, $e);
}