mirror of
https://github.com/friendica/friendica
synced 2025-04-23 14:30:11 +00:00
Make requested changes
This commit is contained in:
parent
6a5266c6b8
commit
40783db161
5 changed files with 10 additions and 13 deletions
|
@ -88,6 +88,8 @@ class Display extends BaseModule
|
|||
|
||||
protected function content(array $request = []): string
|
||||
{
|
||||
header('Vary: Accept', false);
|
||||
|
||||
if (ActivityPub::isRequest()) {
|
||||
$this->baseUrl->redirect(str_replace('display/', 'objects/', $this->args->getQueryString()));
|
||||
}
|
||||
|
@ -162,8 +164,6 @@ class Display extends BaseModule
|
|||
|
||||
$output .= $this->getDisplayData($item);
|
||||
|
||||
header('Vary: Accept', false);
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue