mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
fix(federation): Fall back to old version flag
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
f1e2970040
commit
75c16a722b
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue