mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 09:54:28 +02:00
Make requested changes
This commit is contained in:
parent
6a5266c6b8
commit
40783db161
5 changed files with 10 additions and 13 deletions
|
@ -46,6 +46,8 @@ class Objects extends BaseModule
|
|||
throw new HTTPException\BadRequestException();
|
||||
}
|
||||
|
||||
header('Vary: Accept', false);
|
||||
|
||||
if (!ActivityPub::isRequest()) {
|
||||
DI::baseUrl()->redirect(str_replace('objects/', 'display/', DI::args()->getQueryString()));
|
||||
}
|
||||
|
@ -130,8 +132,6 @@ class Objects extends BaseModule
|
|||
// Relaxed CORS header for public items
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
|
||||
header('Vary: Accept', false);
|
||||
|
||||
System::jsonExit($data, 'application/activity+json');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue