From 5c1ee72d68edce4d53cee67b7560fc75fa882b93 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 22 Mar 2024 01:41:42 +0100 Subject: [PATCH] fix: log what comes to our inbox --- src/activitypub/user.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/activitypub/user.rs b/src/activitypub/user.rs index 366dc444..464403d4 100644 --- a/src/activitypub/user.rs +++ b/src/activitypub/user.rs @@ -85,6 +85,7 @@ pub async fn inbox( Path(_id): Path, Json(object): Json ) -> Result, StatusCode> { + tracing::info!("received object on inbox: {}", serde_json::to_string_pretty(&object).unwrap()); match object.base_type() { None => { Err(StatusCode::BAD_REQUEST) }, Some(BaseType::Link(_x)) => Err(StatusCode::UNPROCESSABLE_ENTITY), // we could but not yet