]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Home.php
Some more API functions moved
[friendica.git] / src / Module / Home.php
index 43e783f18c64f9ce8410a63175a07987e3d0223f..9d16e11aa7f6eb6c457c9377b4790fe707db9a6b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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');
                }