mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-12-25 20:00:29 +00:00
Use actor ID in NotSubscribed error
This commit is contained in:
parent
d0a728a9b5
commit
57ed79add5
1 changed files with 2 additions and 2 deletions
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue