use jsonexit
This commit is contained in:
parent
d7df0825db
commit
a1e675ded1
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user