]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Move mod/follow to src/Modules
[friendica.git] / mod / redir.php
index afdb20d486ca098d62759bf07834408b1dfc3d72..903c6b2a354f074b7f5de0caa039c167b14f2e22 100644 (file)
@@ -21,7 +21,6 @@
 
 use Friendica\App;
 use Friendica\Core\Logger;
-use Friendica\Core\Session;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\DI;
@@ -83,7 +82,7 @@ function redir_init(App $a) {
                }
        }
 
-       if (DI::userSession()->getRemoteUserId) {
+       if (DI::userSession()->getRemoteUserId()) {
                $host = substr(DI::baseUrl()->getUrlPath() . (DI::baseUrl()->getUrlPath() ? '/' . DI::baseUrl()->getUrlPath() : ''), strpos(DI::baseUrl()->getUrlPath(), '://') + 3);
                $remotehost = substr($contact['addr'], strpos($contact['addr'], '@') + 1);