aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-03-10 16:24:26 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2025-03-11 21:52:07 +0100
commitc0003fbd9cf2443d2eea8ed40a7440ad8ff078bd (patch)
treedbb531aa35b74cb45b46cd98a702e2913b954173 /lib
parent7d3047f5cb73806bf48fcf7757a979adb99ae556 (diff)
downloadnextcloud-server-c0003fbd9cf2443d2eea8ed40a7440ad8ff078bd.tar.gz
nextcloud-server-c0003fbd9cf2443d2eea8ed40a7440ad8ff078bd.zip
fix(lookup-server): disable lookup server for non-global scale setups
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Collaboration/Collaborators/LookupPlugin.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php
index 29ea7b56c6a..d026cfa80eb 100644
--- a/lib/private/Collaboration/Collaborators/LookupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php
@@ -35,8 +35,10 @@ class LookupPlugin implements ISearchPlugin {
$isLookupServerEnabled = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no') === 'yes';
$hasInternetConnection = $this->config->getSystemValueBool('has_internet_connection', true);
- // if case of Global Scale we always search the lookup server
- if (!$isGlobalScaleEnabled && (!$isLookupServerEnabled || !$hasInternetConnection)) {
+ // If case of Global Scale we always search the lookup server
+ // TODO: Reconsider using the lookup server for non-global scale
+ // if (!$isGlobalScaleEnabled && (!$isLookupServerEnabled || !$hasInternetConnection || $disableLookupServer)) {
+ if (!$isGlobalScaleEnabled) {
return false;
}