Merge pull request #1510 from nextcloud/clean/noid/remove-old-call-to-public-services

remove old services
pull/1511/head
Maxence Lange 2022-11-03 12:46:11 -01:00 zatwierdzone przez GitHub
commit 4aa75cfd76
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 0 dodań i 23 usunięć

Wyświetl plik

@ -169,23 +169,6 @@ class Reset extends Base {
$this->coreRequestBuilder->uninstallSocialTables();
$this->coreRequestBuilder->uninstallFromMigrations();
$this->coreRequestBuilder->uninstallFromJobs();
$this->uninstallWellKnown();
$this->configService->unsetAppConfig();
}
/**
*
*/
private function uninstallWellKnown() {
if ($this->configService->getCoreValue('public_webfinger') === 'social/lib/webfinger.php') {
$this->configService->unsetCoreValue('public_webfinger');
}
if ($this->configService->getCoreValue('public_host-meta') === 'social/lib/hostmeta.php') {
$this->configService->unsetCoreValue('public_host-meta');
}
if ($this->configService->getCoreValue('public_host-meta-json') === 'social/lib/hostmeta.php') {
$this->configService->unsetCoreValue('public_host-meta-json');
}
}
}

Wyświetl plik

@ -202,9 +202,6 @@ class AccountService {
/* we do nohtin */
}
$this->configService->setCoreValue('public_webfinger', 'social/lib/webfinger.php');
$this->configService->setCoreValue('public_host-meta', 'social/lib/hostmeta.php');
$actor = new Person();
$actor->setUserId($userId);
$actor->setPreferredUsername($username);

Wyświetl plik

@ -155,9 +155,6 @@ class CheckService {
* @return array
*/
public function checkInstallationStatus(bool $light = false): array {
$this->configService->setCoreValue('public_webfinger', 'social/lib/webfinger.php');
$this->configService->setCoreValue('public_host-meta', 'social/lib/hostmeta.php');
$result = [];
if (!$light) {
$result = [