From 19a6a6e61ccbab0e1a0f29c788779ff88cfb1d7e Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 18 Mar 2020 12:42:48 -0500 Subject: [PATCH] Use actor's inbox for listener check --- src/inbox.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inbox.rs b/src/inbox.rs index e708dd1..2bec5b4 100644 --- a/src/inbox.rs +++ b/src/inbox.rs @@ -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() {