mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:10:11 +00:00
add status code to System::externalRedirect
This commit is contained in:
parent
21aa82e064
commit
6ff3389f6e
2 changed files with 16 additions and 3 deletions
|
@ -4,6 +4,7 @@ namespace Friendica\Module\Diaspora;
|
|||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Network\HTTPException;
|
||||
|
@ -44,7 +45,7 @@ class Fetch extends BaseModule
|
|||
|
||||
if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {
|
||||
$location = $host . "/fetch/" . $app->argv[1] . "/" . urlencode($guid);
|
||||
$app->redirect($location);
|
||||
System::externalRedirect($location, 301);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue