mirror of
https://github.com/friendica/friendica
synced 2024-11-18 14:23:41 +00:00
Avoid "Cannot modify header information - headers already sent"
This commit is contained in:
parent
f8eb38b275
commit
83ae873646
1 changed files with 1 additions and 1 deletions
|
@ -59,8 +59,8 @@ function profile_init(App $a)
|
||||||
$user = DBA::selectFirst('user', ['uid'], ['nickname' => $which]);
|
$user = DBA::selectFirst('user', ['uid'], ['nickname' => $which]);
|
||||||
if (DBA::isResult($user)) {
|
if (DBA::isResult($user)) {
|
||||||
$data = ActivityPub\Transmitter::getProfile($user['uid']);
|
$data = ActivityPub\Transmitter::getProfile($user['uid']);
|
||||||
echo json_encode($data);
|
|
||||||
header('Content-Type: application/activity+json');
|
header('Content-Type: application/activity+json');
|
||||||
|
echo json_encode($data);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue