summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-05-03 22:31:28 +0200
committerJoas Schilling <coding@schilljs.com>2023-05-04 09:40:18 +0200
commita7493323bb0df4a043679804d7de56760e9414dd (patch)
treef4ac99dcdb2262e6382bff6d7a06fb90ad0c706d /lib
parent7ed3a49e9fd2b94d869d89bda463b3cdfa156b21 (diff)
fix(capabilities): Convert TranslationTuples to arrays so they work in XML
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Capabilities.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Capabilities.php b/lib/Capabilities.php
index 21206a38b..8d778540d 100644
--- a/lib/Capabilities.php
+++ b/lib/Capabilities.php
@@ -132,8 +132,8 @@ class Capabilities implements IPublicCapability {
'chat' => [
'max-length' => ChatManager::MAX_CHAT_LENGTH,
'read-privacy' => Participant::PRIVACY_PUBLIC,
- //'legacy' => true, // Temporary A-B switch to opt-out of the new context loading
- 'translations' => $this->translationManager->getLanguages(),
+ // Transform the JsonSerializable language tuples to arrays
+ 'translations' => json_decode(json_encode($this->translationManager->getLanguages()), true),
],
'conversations' => [
'can-create' => $user instanceof IUser && !$this->talkConfig->isNotAllowedToCreateConversations($user)