From aa196d383afe24fb4b9586e5cb65aa8e5d8c0e96 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Tue, 31 Jul 2018 20:58:06 +0100 Subject: [PATCH] Add initial debug data for Actor Inbox --- actions/apactorinbox.php | 3 +++ actions/apsharedinbox.php | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/apactorinbox.php b/actions/apactorinbox.php index fadd177..ab9b203 100755 --- a/actions/apactorinbox.php +++ b/actions/apactorinbox.php @@ -65,6 +65,9 @@ class apActorInboxAction extends ManagedAction 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')); // Validate data diff --git a/actions/apsharedinbox.php b/actions/apsharedinbox.php index 63551c9..02d63a7 100755 --- a/actions/apsharedinbox.php +++ b/actions/apsharedinbox.php @@ -56,7 +56,6 @@ class apSharedInboxAction extends ManagedAction } common_debug('ActivityPub Shared Inbox: Received a POST request.'); - $data = file_get_contents('php://input'); common_debug('ActivityPub Shared Inbox: Request contents: '.$data); $data = json_decode(file_get_contents('php://input'));