Skip to content

Commit

Permalink
fix(federation): Fix protocol handling of invitations
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nickvergessen committed Jan 16, 2025
1 parent 85a1fb6 commit 6dd1cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Federation/CloudFederationProviderTalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}
Expand Down

0 comments on commit 6dd1cc1

Please sign in to comment.