Fix issue with protocol string in actor id generation (#1668)

This commit is contained in:
Dessalines 2021-07-20 12:55:04 -04:00 committed by GitHub
parent 5fe7de2bff
commit 7d3b90d711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)