]> git.mxchange.org Git - friendica.git/commitdiff
Add redirect for fetch
authorPhilipp Holzer <admin@philipp.info>
Fri, 3 May 2019 13:08:50 +0000 (15:08 +0200)
committerPhilipp Holzer <admin@philipp.info>
Fri, 3 May 2019 13:08:50 +0000 (15:08 +0200)
src/Module/Diaspora/Fetch.php

index e6f94a958e4dd5238ee98cb7078cd12b116b6399..46d93880621b87c519ad239953da4ee46beac9c2 100644 (file)
@@ -44,10 +44,7 @@ class Fetch extends BaseModule
 
                                if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {
                                        $location = $host . "/fetch/" . $app->argv[1] . "/" . urlencode($guid);
-
-                                       header("HTTP/1.1 301 Moved Permanently");
-                                       header("Location:" . $location);
-                                       exit();
+                                       $app->redirect($location);
                                }
                        }