Merge pull request #26633 from nextcloud/enh/sharee/lookup_later

Make lookup search explicit
This commit is contained in:
Julius Härtl 2021-04-20 05:38:00 -01:00 committed by GitHub
commit 59f8685af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class ShareesAPIController extends OCSController {
* @return DataResponse * @return DataResponse
* @throws OCSBadRequestException * @throws OCSBadRequestException
*/ */
public function search(string $search = '', string $itemType = null, int $page = 1, int $perPage = 200, $shareType = null, bool $lookup = true): DataResponse { public function search(string $search = '', string $itemType = null, int $page = 1, int $perPage = 200, $shareType = null, bool $lookup = false): DataResponse {
// only search for string larger than a given threshold // only search for string larger than a given threshold
$threshold = $this->config->getSystemValueInt('sharing.minSearchStringLength', 0); $threshold = $this->config->getSystemValueInt('sharing.minSearchStringLength', 0);