diff options
author | Joas Schilling <coding@schilljs.com> | 2024-02-26 11:58:00 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-02-26 11:58:00 +0100 |
commit | d576fc912fcc602f38aa0a9675727fe1bb0be069 (patch) | |
tree | f6844d80d1a7dbe6a3c57153157c24c76ee7f7d4 /lib/Federation | |
parent | 7e91398e5412e086954d1b61030fcb4fb69d0a62 (diff) |
fix(federation): Allow optional calls like with lastEditActor*
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Federation')
-rw-r--r-- | lib/Federation/Proxy/TalkV1/UserConverter.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Federation/Proxy/TalkV1/UserConverter.php b/lib/Federation/Proxy/TalkV1/UserConverter.php index f1f9cfd3a..37288d578 100644 --- a/lib/Federation/Proxy/TalkV1/UserConverter.php +++ b/lib/Federation/Proxy/TalkV1/UserConverter.php @@ -42,6 +42,10 @@ class UserConverter { } public function convertAttendee(Room $room, array $entry, string $typeField, string $idField, string $displayNameField): array { + if (!isset($entry[$typeField])) { + return $entry; + } + if ($entry[$typeField] === Attendee::ACTOR_USERS) { $entry[$typeField] = Attendee::ACTOR_FEDERATED_USERS; $entry[$idField] .= '@' . $room->getRemoteServer(); |