mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-25 02:51:12 +00:00
Use actor's inbox for listener check
This commit is contained in:
parent
cb4d99cdc5
commit
19a6a6e61c
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ pub async fn inbox(
|
|||
let (is_blocked, is_whitelisted, is_listener) = join!(
|
||||
state.is_blocked(&actor.id),
|
||||
state.is_whitelisted(&actor.id),
|
||||
state.is_listener(&actor.id)
|
||||
state.is_listener(actor.inbox())
|
||||
);
|
||||
|
||||
if is_blocked {
|
||||
|
@ -50,7 +50,7 @@ pub async fn inbox(
|
|||
}
|
||||
|
||||
if input.kind != ValidTypes::Follow && !is_listener {
|
||||
return Err(MyError::NotSubscribed(actor.id.to_string()));
|
||||
return Err(MyError::NotSubscribed(actor.inbox().to_string()));
|
||||
}
|
||||
|
||||
if actor.public_key.id.as_str() != verified.key_id() {
|
||||
|
|
Loading…
Reference in a new issue