Merge pull request #26641 from nextcloud/backport/26633/stable21
[stable21] Make lookup search explicit
This commit is contained in:
commit
c580dd5fe9
|
@ -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 = (int)$this->config->getSystemValue('sharing.minSearchStringLength', 0);
|
$threshold = (int)$this->config->getSystemValue('sharing.minSearchStringLength', 0);
|
||||||
|
|
Loading…
Reference in New Issue