]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Objects.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / ActivityPub / Objects.php
index f93c8b95747a1561ef873fd1c8afb3ce5258017b..bbb008690989283816f8b425eff4c9f78e14152f 100644 (file)
@@ -46,8 +46,6 @@ 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()));
                }
@@ -132,6 +130,6 @@ class Objects extends BaseModule
                // Relaxed CORS header for public items
                header('Access-Control-Allow-Origin: *');
 
-               System::jsonExit($data, 'application/activity+json');
+               $this->jsonExit($data, 'application/activity+json');
        }
 }