From a1e675ded1bfac5e0adb32588c7c8f77e666bd92 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 Apr 2022 03:41:24 +0000 Subject: [PATCH] use jsonexit --- src/Module/ActivityPub/Featured.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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'); } } -- 2.39.5