Fix issue with protocol string in actor id generation

This commit is contained in:
Dessalines 2021-07-20 12:32:21 -04:00
parent 5fe7de2bff
commit 6872554c47

View File

@ -349,7 +349,7 @@ pub fn build_actor_id_from_shortname(
let domain = if split.len() == 1 {
Settings::get().get_protocol_and_hostname()
} else {
format!("https://{}", split[1])
format!("{}://{}", Settings::get().get_protocol_string(), split[1])
};
generate_apub_endpoint_for_domain(endpoint_type, name, &domain)