use jsonexit

This commit is contained in:
Michael 2022-04-09 03:41:24 +00:00
parent d7df0825db
commit a1e675ded1

View File

@ -22,6 +22,7 @@
namespace Friendica\Module\ActivityPub; namespace Friendica\Module\ActivityPub;
use Friendica\BaseModule; use Friendica\BaseModule;
use Friendica\Core\System;
use Friendica\Model\User; use Friendica\Model\User;
use Friendica\Protocol\ActivityPub; use Friendica\Protocol\ActivityPub;
@ -44,8 +45,6 @@ class Featured extends BaseModule
$page = $_REQUEST['page'] ?? null; $page = $_REQUEST['page'] ?? null;
$outbox = ActivityPub\Transmitter::getFeatured($owner, $page); $outbox = ActivityPub\Transmitter::getFeatured($owner, $page);
header('Content-Type: application/activity+json'); System::jsonExit($outbox, 'application/activity+json');
echo json_encode($outbox);
exit();
} }
} }