diff options
-rw-r--r-- | public.php | 2 | ||||
-rw-r--r-- | settings/Application.php | 5 | ||||
-rw-r--r-- | settings/js/admin.js | 7 |
3 files changed, 10 insertions, 4 deletions
diff --git a/public.php b/public.php index ae95624e8d9..43fbe29815e 100644 --- a/public.php +++ b/public.php @@ -68,7 +68,7 @@ try { OC_App::loadApps(array('filesystem', 'logging')); if (!\OC::$server->getAppManager()->isInstalled($app)) { - http_response_code(501); + http_response_code(404); exit; } OC_App::loadApp($app); diff --git a/settings/Application.php b/settings/Application.php index b76ebda403f..69e1d897c92 100644 --- a/settings/Application.php +++ b/settings/Application.php @@ -220,6 +220,11 @@ class Application extends App { $appConfig['core']['public_webfinger'] = $publicWebFinger; } + $publicNodeInfo = \OC::$server->getConfig()->getAppValue('core', 'public_nodeinfo', ''); + if (!empty($publicNodeInfo)) { + $appConfig['core']['public_nodeinfo'] = $publicNodeInfo; + } + $settings['array']['oc_appconfig'] = json_encode($appConfig); } } diff --git a/settings/js/admin.js b/settings/js/admin.js index 6f3db81655d..b2078862079 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -248,7 +248,8 @@ $(document).ready(function(){ // run setup checks then gather error messages $.when( OC.SetupChecks.checkWebDAV(), - OC.SetupChecks.checkWellKnownUrl('/.well-known/webfinger', OC.theme.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true && !!OC.appConfig.core.public_webfinger, [200, 501]), + OC.SetupChecks.checkWellKnownUrl('/.well-known/webfinger', OC.theme.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true && !!OC.appConfig.core.public_webfinger, [200, 404]), + OC.SetupChecks.checkWellKnownUrl('/.well-known/nodeinfo', OC.theme.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true && !!OC.appConfig.core.public_nodeinfo, [200, 404]), OC.SetupChecks.checkWellKnownUrl('/.well-known/caldav', OC.theme.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true), OC.SetupChecks.checkWellKnownUrl('/.well-known/carddav', OC.theme.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true), OC.SetupChecks.checkProviderUrl(OC.getRootPath() + '/ocm-provider/', OC.theme.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true), @@ -257,8 +258,8 @@ $(document).ready(function(){ OC.SetupChecks.checkGeneric(), OC.SetupChecks.checkWOFF2Loading(OC.filePath('core', '', 'fonts/NotoSans-Regular-latin.woff2'), OC.theme.docPlaceholderUrl), OC.SetupChecks.checkDataProtected() - ).then(function (check1, check2, check3, check4, check5, check6, check7, check8, check9, check10) { - var messages = [].concat(check1, check2, check3, check4, check5, check6, check7, check8, check9, check10); + ).then(function (check1, check2, check3, check4, check5, check6, check7, check8, check9, check10, check11) { + var messages = [].concat(check1, check2, check3, check4, check5, check6, check7, check8, check9, check10, check11); var $el = $('#postsetupchecks'); $('#security-warning-state-loading').addClass('hidden'); |