diff --git a/src/server/inbox.rs b/src/server/inbox.rs index 3b69f272..10369c2a 100644 --- a/src/server/inbox.rs +++ b/src/server/inbox.rs @@ -107,7 +107,7 @@ impl apb::server::Inbox for Context { .await? .ok_or_else(UpubError::not_found)?; - if follow_activity.object.unwrap_or("".into()) != follow_activity.actor { + if follow_activity.object.unwrap_or("".into()) != target_actor { return Err(UpubError::forbidden()); }