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 14:26:47 +0100
commit00d08a4f692f66a697080dbd353bcd6d66a6b67b (patch)
tree2b69ce1b221f3256ed137bb239367c1680fbb1a1 /lib
parent34251c4375cd2b0b26b2f5f4b8cbe3bd4c50f8a3 (diff)
downloadnextcloud-server-00d08a4f692f66a697080dbd353bcd6d66a6b67b.tar.gz
nextcloud-server-00d08a4f692f66a697080dbd353bcd6d66a6b67b.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 cc40b2b6abd..2c8dc845458 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;
}