From 6dd1cc18ca4e08a3314abe3bcf05f564c17d7e92 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 16 Jan 2025 14:08:38 +0100 Subject: [PATCH] fix(federation): Fix protocol handling of invitations Invitations are always stored with the protocol, so after making sure it's removed from the remote url, we prepend it when calling the method to search for invitations Signed-off-by: Joas Schilling --- lib/Federation/CloudFederationProviderTalk.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Federation/CloudFederationProviderTalk.php b/lib/Federation/CloudFederationProviderTalk.php index 335c719cc8b..a22bebf00ac 100644 --- a/lib/Federation/CloudFederationProviderTalk.php +++ b/lib/Federation/CloudFederationProviderTalk.php @@ -648,7 +648,7 @@ public function getFederationIdFromSharedSecret( } try { - $invite = $this->invitationMapper->getByRemoteServerAndAccessToken($remoteServerUrl, $sharedSecret); + $invite = $this->invitationMapper->getByRemoteServerAndAccessToken('https://'. $remoteServerUrl, $sharedSecret); return $invite->getInviterCloudId(); } catch (DoesNotExistException) { }