From: Dessalines Date: Tue, 20 Jul 2021 16:55:04 +0000 (-0400) Subject: Fix issue with protocol string in actor id generation (#1668) X-Git-Url: http://these/git/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/static/readmes/README.zh.hans.md?a=commitdiff_plain;h=7d3b90d7117823c52fc9e987aebc023f58710340;p=lemmy.git Fix issue with protocol string in actor id generation (#1668) --- diff --git a/crates/apub/src/lib.rs b/crates/apub/src/lib.rs index c79d14bd..1b1e3d37 100644 --- a/crates/apub/src/lib.rs +++ b/crates/apub/src/lib.rs @@ -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)