From 7d3b90d7117823c52fc9e987aebc023f58710340 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 20 Jul 2021 12:55:04 -0400 Subject: [PATCH] Fix issue with protocol string in actor id generation (#1668) --- 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)