Check webfinger after having created the user

On first run, the user does not exist, so the webfinger check fails.
This makes sure that the user exists before doing the webfinger check

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/1574/head
Louis Chemineau 2023-01-12 16:31:24 +01:00
rodzic e019eb10cc
commit 7750b0c9ca
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -153,11 +153,6 @@ class NavigationController extends Controller {
$this->configService->setSocialUrl();
}
if ($serverData['isAdmin']) {
$checks = $this->checkService->checkDefault();
$serverData['checks'] = $checks;
}
/*
* Create social user account if it doesn't exist yet
*/
@ -172,6 +167,11 @@ class NavigationController extends Controller {
// neither.
}
if ($serverData['isAdmin']) {
$checks = $this->checkService->checkDefault();
$serverData['checks'] = $checks;
}
$this->initialStateService->provideInitialState(Application::APP_NAME, 'serverData', $serverData);
return new TemplateResponse(Application::APP_NAME, 'main');
}