]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make lookup search explicit 26643/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 19 Apr 2021 18:05:21 +0000 (20:05 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 20 Apr 2021 08:37:48 +0000 (08:37 +0000)
Speedsup sharee lookup quite a bit.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/files_sharing/lib/Controller/ShareesAPIController.php

index 0509ba72f1ab951557e4d3be426fad892b304855..b1903ac54b17ffe42fab534315656d71b99e38d1 100644 (file)
@@ -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);