]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Home.php
Merge pull request #12010 from annando/notice
[friendica.git] / src / Module / Home.php
index 43e783f18c64f9ce8410a63175a07987e3d0223f..e384205f5cb77fb93bcb469f9af1b9b8a7883ddf 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -32,7 +32,7 @@ use Friendica\Module\Security\Login;
  */
 class Home extends BaseModule
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $app = DI::app();
                $config = DI::config();
@@ -42,7 +42,7 @@ class Home extends BaseModule
 
                Hook::callAll('home_init', $ret);
 
-               if (local_user() && ($app->user['nickname'])) {
+               if (local_user() && ($app->getLoggedInUserNickname())) {
                        DI::baseUrl()->redirect('network');
                }