]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Objects.php
Changes:
[friendica.git] / src / Module / ActivityPub / Objects.php
index f93c8b95747a1561ef873fd1c8afb3ce5258017b..fc193df1282d52e9c5dd1dc37c419c238b83f1ac 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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');
        }
 }