UserSession class - Refactor addon

This commit is contained in:
Philipp 2022-10-20 23:51:49 +02:00
parent 8eca74cfab
commit b0eb28143a
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
46 changed files with 534 additions and 580 deletions

View file

@ -48,7 +48,6 @@ use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Core\System;
use Friendica\DI;
@ -59,7 +58,7 @@ function blackout_install() {
function blackout_redirect (App $a, $b)
{
// if we have a logged in user, don't throw her out
if (Session::getLocalUser()) {
if (DI::userSession()->getLocalUserId()) {
return true;
}