Skip to content

Commit 86161a5

Browse files
committed
chore(upgrade) nextcloud/ocp and fix deprecation
Signed-off-by: Max <max@nextcloud.com>
1 parent 7017583 commit 86161a5

4 files changed

Lines changed: 24 additions & 27 deletions

File tree

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Controller/UserApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function index(string $filter = '', int $limit = 5): DataResponse {
5656

5757
if (!$this->getSession()->isGuest()) {
5858
// Add other users to the autocomplete list
59-
[$result] = $this->collaboratorSearch->search($filter, [IShare::TYPE_USER], false, $limit, 0);
59+
[$result] = $this->collaboratorSearch->filteredSearch($filter, [IShare::TYPE_USER], false, 'file', null, $limit, 0);
6060
$userSearch = array_merge($result['users'], $result['exact']['users']);
6161

6262
foreach ($userSearch as ['label' => $label, 'value' => $value]) {

tests/unit/Controller/UserApiControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testUsersIndex(int $documentId, int $sessionId, string $sessionT
7373
->willReturn('Administrator');
7474
$this->collaboratorSearch
7575
->expects($this->once())
76-
->method('search')->willReturn([
76+
->method('filteredSearch')->willReturn([
7777
[
7878
'exact' => [
7979
'users' => []

vendor-bin/rector/composer.lock

Lines changed: 15 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)