diff --git a/crates/api_crud/src/user/create.rs b/crates/api_crud/src/user/create.rs index c84bd0a50..71e36c925 100644 --- a/crates/api_crud/src/user/create.rs +++ b/crates/api_crud/src/user/create.rs @@ -6,7 +6,6 @@ use lemmy_api_common::{ person::{LoginResponse, Register}, utils::{ generate_inbox_url, - generate_local_apub_endpoint, generate_shared_inbox_url, honeypot_check, local_site_to_slur_regex, @@ -97,11 +96,6 @@ pub async fn register( let actor_keypair = generate_actor_keypair()?; is_valid_actor_name(&data.username, local_site.actor_name_max_length as usize)?; - let actor_id = generate_local_apub_endpoint( - EndpointType::Person, - &data.username, - &context.settings().get_protocol_and_hostname(), - )?; if let Some(email) = &data.email { if LocalUser::is_email_taken(&mut context.pool(), email).await? { @@ -113,7 +107,6 @@ pub async fn register( // Register the new person let person_form = PersonInsertForm { - actor_id: Some(actor_id.clone()), inbox_url: Some(generate_inbox_url(&actor_id)?), shared_inbox_url: Some(generate_shared_inbox_url(context.settings())?), private_key: Some(actor_keypair.private_key),