diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-09-06 16:09:29 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-09-26 23:10:23 +0200 |
commit | 4a96e222588104f647f911857e370b3ab692ea22 (patch) | |
tree | c0859c504c83b8e4e6f11a2d1c39974ca338e63b /lib/private/Collaboration/Collaborators/UserPlugin.php | |
parent | 579c1476a3ec5d9b93130c84a5cc1438b9bd03a9 (diff) | |
download | nextcloud-server-4a96e222588104f647f911857e370b3ab692ea22.tar.gz nextcloud-server-4a96e222588104f647f911857e370b3ab692ea22.zip |
don't keep result types hard coded
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Collaboration/Collaborators/UserPlugin.php')
-rw-r--r-- | lib/private/Collaboration/Collaborators/UserPlugin.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php index 815862b8726..6d2709f8bd0 100644 --- a/lib/private/Collaboration/Collaborators/UserPlugin.php +++ b/lib/private/Collaboration/Collaborators/UserPlugin.php @@ -26,6 +26,7 @@ namespace OC\Collaboration\Collaborators; use OCP\Collaboration\Collaborators\ISearchPlugin; use OCP\Collaboration\Collaborators\ISearchResult; +use OCP\Collaboration\Collaborators\SearchResultType; use OCP\IConfig; use OCP\IGroupManager; use OCP\IUser; @@ -140,7 +141,8 @@ class UserPlugin implements ISearchPlugin { $result['wide'] = []; } - $searchResult->addResultSet('users', $result['wide'], $result['exact']); + $type = new SearchResultType('users'); + $searchResult->addResultSet($type, $result['wide'], $result['exact']); return $hasMoreResults; } |