diff --git a/lib/Federation/CloudFederationProviderTalk.php b/lib/Federation/CloudFederationProviderTalk.php index 394d3fcf08c..c0e5c7871c8 100644 --- a/lib/Federation/CloudFederationProviderTalk.php +++ b/lib/Federation/CloudFederationProviderTalk.php @@ -643,7 +643,7 @@ public function getFederationIdFromSharedSecret( array $payload, ): string { try { - $invite = $this->invitationMapper->getByRemoteServerOnlyWithAccessToken($payload['remoteServerUrl'], $sharedSecret); + $invite = $this->invitationMapper->getByRemoteServerAndAccessToken($payload['remoteServerUrl'], $sharedSecret); return $invite->getInviterCloudId(); } catch (DoesNotExistException) { } diff --git a/lib/Model/InvitationMapper.php b/lib/Model/InvitationMapper.php index 5751d8ed28b..82f8bef4b5d 100644 --- a/lib/Model/InvitationMapper.php +++ b/lib/Model/InvitationMapper.php @@ -48,7 +48,7 @@ public function getInvitationById(int $id): Invitation { * @throws DoesNotExistException * @internal Does not check user relation */ - public function getByRemoteServerOnlyWithAccessToken( + public function getByRemoteServerAndAccessToken( string $remoteServerUrl, #[SensitiveParameter] string $accessToken,