Browse Source

fix(federation): Fix protocol handling of invitations

Invitations are always stored with the protocol,
so when checking for invitations we use the original remoteServerUrl
which contains the protocol in http and https cases

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/14141/head
Joas Schilling 10 months ago
parent
commit
4ea70018cc
No known key found for this signature in database GPG Key ID: F72FA5B49FFA96B0
  1. 2
      lib/Federation/CloudFederationProviderTalk.php

2
lib/Federation/CloudFederationProviderTalk.php

@ -648,7 +648,7 @@ class CloudFederationProviderTalk implements ICloudFederationProvider, ISignedCl
}
try {
$invite = $this->invitationMapper->getByRemoteServerAndAccessToken($remoteServerUrl, $sharedSecret);
$invite = $this->invitationMapper->getByRemoteServerAndAccessToken($payload['remoteServerUrl'], $sharedSecret);
return $invite->getInviterCloudId();
} catch (DoesNotExistException) {
}

Loading…
Cancel
Save