]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Merge pull request #8191 from MrPetovan/task/7967-mastodon-api-custom_emojis
[friendica.git] / mod / redir.php
index 990ebc194e2811f892fa678d18b26b3cb2fc5c3e..1d36065e9956ae844842e96d48bf07e2087e46b4 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 
 use Friendica\App;
-use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Session;
 use Friendica\Core\System;
@@ -151,7 +150,7 @@ function redir_magic($a, $cid, $url)
        // We don't use magic auth when there is no visitor, we are on the same system or we visit our own stuff
        if (empty($visitor) || Strings::compareLink($basepath, DI::baseUrl()) || Strings::compareLink($contact_url, $visitor)) {
                Logger::info('Redirecting without magic', ['target' => $target_url, 'visitor' => $visitor, 'contact' => $contact_url]);
-               System::externalRedirect($target_url);
+               DI::app()->redirect($target_url);
        }
 
        // Test for magic auth on the target system