]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile/Profile.php
Update function / rearrange tab order
[friendica.git] / src / Module / Profile / Profile.php
index b8f16656ebd4ff00b276f65ca1c98df585c858c8..054943c135a71f2a413f931b05a48e2ac8a490ae 100644 (file)
@@ -84,10 +84,9 @@ class Profile extends BaseProfile
                        $user = $this->database->selectFirst('user', ['uid'], ['nickname' => $this->parameters['nickname'] ?? '', 'account_removed' => false]);
                        if ($user) {
                                try {
-                                       $data = ActivityPub\Transmitter::getProfile($user['uid']);
+                                       $data = ActivityPub\Transmitter::getProfile($user['uid'], ActivityPub::isAcceptedRequester($user['uid']));
                                        header('Access-Control-Allow-Origin: *');
                                        header('Cache-Control: max-age=23200, stale-while-revalidate=23200');
-                                       header('Vary: Accept', false);
                                        System::jsonExit($data, 'application/activity+json');
                                } catch (HTTPException\NotFoundException $e) {
                                        System::jsonError(404, ['error' => 'Record not found']);
@@ -104,8 +103,6 @@ class Profile extends BaseProfile
                                System::jsonError(404, []);
                        }
                }
-
-               header('Vary: Accept', false);
        }
 
        protected function content(array $request = []): string