From: Roeland Jago Douma Date: Mon, 19 Apr 2021 18:05:21 +0000 (+0200) Subject: Make lookup search explicit X-Git-Tag: v20.0.10RC1~29^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5edc58d1188bc31d649dc9c7790c6f558003e2d;p=nextcloud-server.git Make lookup search explicit Speedsup sharee lookup quite a bit. Signed-off-by: Roeland Jago Douma --- diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php index 0509ba72f1a..b1903ac54b1 100644 --- a/apps/files_sharing/lib/Controller/ShareesAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php @@ -137,7 +137,7 @@ class ShareesAPIController extends OCSController { * @return DataResponse * @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 $threshold = (int)$this->config->getSystemValue('sharing.minSearchStringLength', 0);