sforkowany z mirror/social
remove old services
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>update-master-target-versions
rodzic
7716f217f2
commit
31ae058033
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Ładowanie…
Reference in New Issue