From 21aa82e06414fd5e937437602436157e09ef8745 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Fri, 3 May 2019 15:08:50 +0200 Subject: [PATCH] Add redirect for fetch --- src/Module/Diaspora/Fetch.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Module/Diaspora/Fetch.php b/src/Module/Diaspora/Fetch.php index e6f94a958..46d938806 100644 --- a/src/Module/Diaspora/Fetch.php +++ b/src/Module/Diaspora/Fetch.php @@ -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); } }