]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Home.php
Move settings/addons to src/Module
[friendica.git] / src / Module / Home.php
index ca0ce0b7258dc5bd1c8e0ce1e5cd9b21f60841d1..ca4c4b89596a8e1af0e99ffba57b4825aa9360b2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, 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->getLoggedInUserNickname())) {
+               if (DI::userSession()->getLocalUserId() && ($app->getLoggedInUserNickname())) {
                        DI::baseUrl()->redirect('network');
                }