summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-04-21 12:23:44 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-04-28 23:41:36 -0300
commit866e5d6d050bc25387197ba10156809fde8e24a7 (patch)
tree13bcf0342d58d84e4876680a0842772ed020f625 /apps
parentcbf5acca45388a44e22410abcd25a19d86fa68ee (diff)
downloadnextcloud-server-866e5d6d050bc25387197ba10156809fde8e24a7.tar.gz
nextcloud-server-866e5d6d050bc25387197ba10156809fde8e24a7.zip
use configured lookup server
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/Controller/ShareesAPIController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php
index eb65727c770..ace413a51a8 100644
--- a/apps/files_sharing/lib/Controller/ShareesAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php
@@ -654,13 +654,14 @@ class ShareesAPIController extends OCSController {
protected function getLookup($search) {
$isEnabled = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no');
+ $lookupServerUrl = $this->config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com');
$result = [];
if($isEnabled === 'yes') {
try {
$client = $this->clientService->newClient();
$response = $client->get(
- 'https://lookup.nextcloud.com/users?search=' . urlencode($search),
+ $lookupServerUrl . '/users?search=' . urlencode($search),
[
'timeout' => 10,
'connect_timeout' => 3,