config = $config; } public function isGlobalScaleEnabled() { return $this->config->getSystemValueBool('gs.enabled', false); } public function onlyInternalFederation() { // if global scale is disabled federation works always globally $gsEnabled = $this->isGlobalScaleEnabled(); if ($gsEnabled === false) { return false; } $enabled = $this->config->getSystemValueString('gs.federation', 'internal'); return $enabled === 'internal'; } }