From 6872554c4795560249dde4301b22f14c4477ee2a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 20 Jul 2021 12:32:21 -0400 Subject: [PATCH] Fix issue with protocol string in actor id generation --- crates/apub/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/apub/src/lib.rs b/crates/apub/src/lib.rs index c79d14bd7..1b1e3d37f 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)