diff options
author | Joas Schilling <coding@schilljs.com> | 2024-02-14 12:44:27 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-02-23 14:33:00 +0100 |
commit | 74e75417be28f0329ce98667ce4d84bd03e6441c (patch) | |
tree | 381bcdaee20bcc6fa3b7a23981c0250d955b910b /lib/Federation/BackendNotifier.php | |
parent | 848fecf97d0e218c42fa6b31e93d140ab8ad7caa (diff) |
feat(federation): Add TalkV1 federation proxy for mentions
Decision is to proxy the requests on the own server,
so we can proxy other services (matrix coming to mind)
in the future and the clients still have to only talk to
their own server, to help with CSP and to reduce the efforts
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Federation/BackendNotifier.php')
-rw-r--r-- | lib/Federation/BackendNotifier.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Federation/BackendNotifier.php b/lib/Federation/BackendNotifier.php index 1c01a2797..ce6dbcb8b 100644 --- a/lib/Federation/BackendNotifier.php +++ b/lib/Federation/BackendNotifier.php @@ -121,6 +121,7 @@ class BackendNotifier { /** @var IUser|null $roomOwner */ $roomOwner = $this->userManager->get($roomOwnerAttendee->getActorId()); + $invitedCloudId = $user . '@' . $remote; $remote = $this->prepareRemoteUrl($remote); $share = $this->cloudFederationFactory->getCloudFederationShare( @@ -139,6 +140,7 @@ class BackendNotifier { // Put room name info in the share $protocol = $share->getProtocol(); + $protocol['invitedCloudId'] = $invitedCloudId; $protocol['roomName'] = $roomName; $protocol['roomType'] = $roomType; $protocol['name'] = FederationManager::TALK_PROTOCOL_NAME; |