]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make lookup search explicit 26641/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:33:04 +0000 (08:33 +0000)
Speedsup sharee lookup quite a bit.

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

index 33ac1662a4d1f6c734a9ad8579dffe72bae543c6..97da38fd1c8f4d6ee23b4ae5700ae6faa22bf713 100644 (file)
@@ -141,7 +141,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);