[ActivityPub][Inbox] Add request to debug logs

This commit is contained in:
Diogo Peralta Cordeiro 2021-12-20 14:06:26 +00:00
parent e7dcea3f26
commit e2c0505620
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

@ -80,6 +80,7 @@ class Inbox extends Controller
Log::debug('ActivityPub Inbox: Received a POST request.');
$body = (string)$this->request->getContent();
Log::debug('ActivityPub Inbox: Request Body content: '.$body);
$type = Model::jsonToType($body);
if ($type->has('actor') === false) {
@ -104,6 +105,7 @@ class Inbox extends Controller
$actor_public_key = $activitypub_rsa->getPublicKey();
$headers = $this->request->headers->all();
Log::debug('ActivityPub Inbox: Request Headers: '.var_export($headers, true));
// Flattify headers
foreach ($headers as $key => $val) {
$headers[$key] = $val[0];