use jsonexit
This commit is contained in:
parent
d7df0825db
commit
a1e675ded1
1 changed files with 2 additions and 3 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue