diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-05-04 10:50:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 10:50:27 +0200 |
commit | 217a59c81564d75146229be2ad749cf19d19d1db (patch) | |
tree | 6f542b047d1269429e6430166741d4987a9d8f5b /lib | |
parent | 84153ff63b0dfd3da355af337500a6ab368965c1 (diff) | |
parent | a7493323bb0df4a043679804d7de56760e9414dd (diff) |
Merge pull request #9437 from nextcloud/bugfix/9435/XML-capabilities-are-broken
fix(capabilities): Convert TranslationTuples to arrays so they work in XML
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Capabilities.php | 4 |
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) |