aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/AppInfo
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-14 15:56:07 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-16 13:13:05 +0100
commit6995223b1ed202c7f8e920e83cb5b53efd7ce761 (patch)
tree76e839b9c3de3b4751a993f24f35f0cb93c0dbbd /apps/settings/lib/AppInfo
parentd37034f1612279b07c78284771ac73fbd5a2a407 (diff)
downloadnextcloud-server-6995223b1ed202c7f8e920e83cb5b53efd7ce761.tar.gz
nextcloud-server-6995223b1ed202c7f8e920e83cb5b53efd7ce761.zip
Add well known handlers API
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/settings/lib/AppInfo')
-rw-r--r--apps/settings/lib/AppInfo/Application.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/apps/settings/lib/AppInfo/Application.php b/apps/settings/lib/AppInfo/Application.php
index fe9ba63b012..af45c56e517 100644
--- a/apps/settings/lib/AppInfo/Application.php
+++ b/apps/settings/lib/AppInfo/Application.php
@@ -163,8 +163,6 @@ class Application extends App implements IBootstrap {
$groupManager->listen('\OC\Group', 'postRemoveUser', [$this, 'removeUserFromGroup']);
$groupManager->listen('\OC\Group', 'postAddUser', [$this, 'addUserToGroup']);
});
-
- Util::connectHook('\OCP\Config', 'js', $this, 'extendJsConfig');
}
public function addUserToGroup(IGroup $group, IUser $user): void {
@@ -209,23 +207,4 @@ class Application extends App implements IBootstrap {
$hooks = $this->getContainer()->query(Hooks::class);
$hooks->onChangeEmail($parameters['user'], $parameters['old_value']);
}
-
- /**
- * @param array $settings
- */
- public function extendJsConfig(array $settings) {
- $appConfig = json_decode($settings['array']['oc_appconfig'], true);
-
- $publicWebFinger = \OC::$server->getConfig()->getAppValue('core', 'public_webfinger', '');
- if (!empty($publicWebFinger)) {
- $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);
- }
}