diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-09-14 23:41:04 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-09-26 23:10:25 +0200 |
commit | 3db3e65121e5908c7a5729dfef965a747da61cca (patch) | |
tree | 8c97f7cea5a873a8483474cb555c836116d15eee /lib/private/Collaboration/Collaborators | |
parent | c43685e6fc142da72a0a77587739986f29635447 (diff) | |
download | nextcloud-server-3db3e65121e5908c7a5729dfef965a747da61cca.tar.gz nextcloud-server-3db3e65121e5908c7a5729dfef965a747da61cca.zip |
add tests for Lookup Plugin
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Collaboration/Collaborators')
-rw-r--r-- | lib/private/Collaboration/Collaborators/LookupPlugin.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php index e3a04fb7dde..3a6a0943772 100644 --- a/lib/private/Collaboration/Collaborators/LookupPlugin.php +++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php @@ -50,7 +50,7 @@ class LookupPlugin implements ISearchPlugin { $lookupServerUrl = $this->config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com'); $lookupServerUrl = rtrim($lookupServerUrl, '/'); - $result = ['wide' => [], 'exact' => []]; + $result = []; try { $client = $this->clientService->newClient(); @@ -64,7 +64,6 @@ class LookupPlugin implements ISearchPlugin { $body = json_decode($response->getBody(), true); - $result = []; foreach ($body as $lookup) { $result[] = [ 'label' => $lookup['federationId'], |