throw new HTTPException\BadRequestException();
}
- header('Vary: Accept', false);
-
if (!ActivityPub::isRequest()) {
DI::baseUrl()->redirect(str_replace('objects/', 'display/', DI::args()->getQueryString()));
}
// Relaxed CORS header for public items
header('Access-Control-Allow-Origin: *');
- System::jsonExit($data, 'application/activity+json');
+ $this->jsonExit($data, 'application/activity+json');
}
}