From 57ed79add5351a90e019778bf88d5f0801358f76 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 10 Feb 2021 00:59:16 -0600 Subject: [PATCH] Use actor ID in NotSubscribed error --- src/routes/inbox.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/inbox.rs b/src/routes/inbox.rs index 9082008..8ec2645 100644 --- a/src/routes/inbox.rs +++ b/src/routes/inbox.rs @@ -43,7 +43,7 @@ pub(crate) async fn route( } if !is_connected && !valid_without_listener(&input)? { - return Err(MyError::NotSubscribed(actor.inbox.to_string())); + return Err(MyError::NotSubscribed(actor.id.to_string())); } if config.validate_signatures() && verified.is_none() { @@ -155,7 +155,7 @@ async fn handle_undo( jobs.queue(Forward::new(input, actor))?; return Ok(()); } else { - return Err(MyError::NotSubscribed(actor.inbox.to_string())); + return Err(MyError::NotSubscribed(actor.id.to_string())); } }