diff options
Diffstat (limited to 'lib/private/Collaboration/Collaborators/CirclePlugin.php')
-rw-r--r-- | lib/private/Collaboration/Collaborators/CirclePlugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/CirclePlugin.php b/lib/private/Collaboration/Collaborators/CirclePlugin.php index 3d476644ecc..951f70e968b 100644 --- a/lib/private/Collaboration/Collaborators/CirclePlugin.php +++ b/lib/private/Collaboration/Collaborators/CirclePlugin.php @@ -27,8 +27,10 @@ namespace OC\Collaboration\Collaborators; use OCA\Circles\Api\Sharees; use OCP\Collaboration\Collaborators\ISearchPlugin; use OCP\Collaboration\Collaborators\ISearchResult; +use OCP\Collaboration\Collaborators\SearchResultType; class CirclePlugin implements ISearchPlugin { + public function search($search, $limit, $offset, ISearchResult $searchResult) { $result = ['wide' => [], 'exact' => []]; @@ -41,7 +43,8 @@ class CirclePlugin implements ISearchPlugin { $result['wide'] = $circles['circles']; } - $searchResult->addResultSet('circles', $result['wide'], $result['exact']); + $type = new SearchResultType('circles'); + $searchResult->addResultSet($type, $result['wide'], $result['exact']); } return false; |