diff --git a/src/activitypub/actors/types.rs b/src/activitypub/actors/types.rs index 194b125..7fa73f2 100644 --- a/src/activitypub/actors/types.rs +++ b/src/activitypub/actors/types.rs @@ -230,7 +230,10 @@ impl Actor { }; }, _ => { - log_error(attachment, ValidationError("unsupported type")); + log_error( + attachment, + ValidationError("unsupported attachment type"), + ); }, }; }; diff --git a/src/activitypub/handlers/announce.rs b/src/activitypub/handlers/announce.rs index ba670b7..268050c 100644 --- a/src/activitypub/handlers/announce.rs +++ b/src/activitypub/handlers/announce.rs @@ -79,6 +79,7 @@ pub async fn handle_announce( log::warn!("repost already exists: {}", repost_object_id); Ok(None) }, + // May return "post not found" error if post if not public Err(other_error) => Err(other_error.into()), } } diff --git a/src/activitypub/handlers/create.rs b/src/activitypub/handlers/create.rs index 3b13c09..26ad76b 100644 --- a/src/activitypub/handlers/create.rs +++ b/src/activitypub/handlers/create.rs @@ -176,7 +176,7 @@ pub async fn handle_note( }, other_type => { log::warn!("discarding object of type {}", other_type); - return Err(ValidationError("unsupported type").into()); + return Err(ValidationError("unsupported object type").into()); }, };