From: Michael Date: Sat, 9 Apr 2022 03:41:24 +0000 (+0000) Subject: use jsonexit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a1e675ded1bfac5e0adb32588c7c8f77e666bd92;p=friendica.git use jsonexit --- diff --git a/src/Module/ActivityPub/Featured.php b/src/Module/ActivityPub/Featured.php index 33aabf3a85..af5a3d317a 100644 --- a/src/Module/ActivityPub/Featured.php +++ b/src/Module/ActivityPub/Featured.php @@ -22,6 +22,7 @@ namespace Friendica\Module\ActivityPub; use Friendica\BaseModule; +use Friendica\Core\System; use Friendica\Model\User; use Friendica\Protocol\ActivityPub; @@ -44,8 +45,6 @@ class Featured extends BaseModule $page = $_REQUEST['page'] ?? null; $outbox = ActivityPub\Transmitter::getFeatured($owner, $page); - header('Content-Type: application/activity+json'); - echo json_encode($outbox); - exit(); + System::jsonExit($outbox, 'application/activity+json'); } }