protected function rawContent(array $request = [])
{
- if (ActivityPub::isRequest()) {
+ // @TODO: Replace with parameter from router
+ if (DI::args()->getArgc() <= 1 || (DI::args()->getArgv()[1] !== 'json')) {
+ if (!ActivityPub::isRequest()) {
+ return;
+ }
+
try {
$data = ActivityPub\Transmitter::getProfile(0);
header('Access-Control-Allow-Origin: *');
}
}
- // @TODO: Replace with parameter from router
- if (DI::args()->getArgc() <= 1 || (DI::args()->getArgv()[1] !== 'json')) {
- return;
- }
-
$config = DI::config();
$register_policies = [