Add initial debug data for Actor Inbox

This commit is contained in:
Diogo Cordeiro 2018-07-31 20:58:06 +01:00
parent b7ac51a967
commit aa196d383a
2 changed files with 3 additions and 1 deletions

View File

@ -65,6 +65,9 @@ class apActorInboxAction extends ManagedAction
ActivityPubReturn::error("C2S not implemented just yet."); ActivityPubReturn::error("C2S not implemented just yet.");
} }
common_debug('ActivityPub Inbox: Received a POST request.');
$data = file_get_contents('php://input');
common_debug('ActivityPub Inbox: Request contents: '.$data);
$data = json_decode(file_get_contents('php://input')); $data = json_decode(file_get_contents('php://input'));
// Validate data // Validate data

View File

@ -56,7 +56,6 @@ class apSharedInboxAction extends ManagedAction
} }
common_debug('ActivityPub Shared Inbox: Received a POST request.'); common_debug('ActivityPub Shared Inbox: Received a POST request.');
$data = file_get_contents('php://input'); $data = file_get_contents('php://input');
common_debug('ActivityPub Shared Inbox: Request contents: '.$data); common_debug('ActivityPub Shared Inbox: Request contents: '.$data);
$data = json_decode(file_get_contents('php://input')); $data = json_decode(file_get_contents('php://input'));