diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-02-24 11:02:34 +0100 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-03-09 10:07:52 +0100 |
commit | 3584e54a895a7bb806840e25cca11097e1955667 (patch) | |
tree | 6122e68b069f6c12989b818726a40d98e1737241 /lib/private/OCS | |
parent | e08c3f1b1d9a80bed2ec1002e119d34e52dfe42c (diff) | |
download | nextcloud-server-3584e54a895a7bb806840e25cca11097e1955667.tar.gz nextcloud-server-3584e54a895a7bb806840e25cca11097e1955667.zip |
announce public endpoints to sync trusted servers
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/private/OCS')
-rw-r--r-- | lib/private/OCS/Provider.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/OCS/Provider.php b/lib/private/OCS/Provider.php index 7d53479c6e2..2e9ed85b67b 100644 --- a/lib/private/OCS/Provider.php +++ b/lib/private/OCS/Provider.php @@ -70,6 +70,23 @@ class Provider extends \OCP\AppFramework\Controller { ]; } + if ($this->appManager->isEnabledForUser('federation')) { + if (isset($services['FEDERATED_SHARING'])) { + $services['FEDERATED_SHARING']['endpoints']['shared-secret'] = '/ocs/v2.php/cloud/shared-secret'; + $services['FEDERATED_SHARING']['endpoints']['system-address-book'] = '/remote.php/dav/addressbooks/system/system/system'; + $services['FEDERATED_SHARING']['endpoints']['carddav-user'] = 'system'; + } else { + $services['FEDERATED_SHARING'] = [ + 'version' => 1, + 'endpoints' => [ + 'shared-secret' => '/ocs/v2.php/cloud/shared-secret', + 'system-address-book' => '/remote.php/dav/addressbooks/system/system/system', + 'carddav-user' => 'system' + ], + ]; + } + } + if($this->appManager->isEnabledForUser('activity')) { $services['ACTIVITY'] = [ 'version' => 1, |