diff options
author | Joas Schilling <coding@schilljs.com> | 2024-12-09 16:15:50 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-12-09 16:20:48 +0100 |
commit | 75c16a722b58d2abc772f6e6b18292020fc183e6 (patch) | |
tree | cf185436e6c522a181f24c94561d06b44fa92b02 /lib | |
parent | f1e2970040b55ac485d5eccd2b76235a9156bcc3 (diff) | |
download | nextcloud-server-75c16a722b58d2abc772f6e6b18292020fc183e6.tar.gz nextcloud-server-75c16a722b58d2abc772f6e6b18292020fc183e6.zip |
fix(federation): Fall back to old version flagbugfix/noid/compatibility-with-30
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/OCM/Model/OCMProvider.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/OCM/Model/OCMProvider.php b/lib/private/OCM/Model/OCMProvider.php index 7ae413fa136..99a3770faef 100644 --- a/lib/private/OCM/Model/OCMProvider.php +++ b/lib/private/OCM/Model/OCMProvider.php @@ -172,7 +172,8 @@ class OCMProvider implements IOCMProvider { */ public function import(array $data): static { $this->setEnabled(is_bool($data['enabled'] ?? '') ? $data['enabled'] : false) - ->setApiVersion((string)($data['version'] ?? '')) + // Fall back to old apiVersion for Nextcloud 30 compatibility + ->setApiVersion((string)($data['version'] ?? $data['apiVersion'] ?? '')) ->setEndPoint($data['endPoint'] ?? ''); $resources = []; |