From 83ae87364683f4a9a2879cd53e9cac8fdda32275 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 13 Nov 2018 20:20:54 +0000 Subject: [PATCH] Avoid "Cannot modify header information - headers already sent" --- mod/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/profile.php b/mod/profile.php index 218cc26e4b..0dc592a977 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -59,8 +59,8 @@ function profile_init(App $a) $user = DBA::selectFirst('user', ['uid'], ['nickname' => $which]); if (DBA::isResult($user)) { $data = ActivityPub\Transmitter::getProfile($user['uid']); - echo json_encode($data); header('Content-Type: application/activity+json'); + echo json_encode($data); exit(); } }