]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Home.php
Possibly Avoid database error when storing photo item
[friendica.git] / src / Module / Home.php
index 76c4736cf1758c9b0401f83042c31ebb6bb7f4c4..ca0ce0b7258dc5bd1c8e0ce1e5cd9b21f60841d1 100644 (file)
@@ -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->getUserNickname())) {
+               if (local_user() && ($app->getLoggedInUserNickname())) {
                        DI::baseUrl()->redirect('network');
                }