]> Untitled Git - lemmy.git/commitdiff
Fix issue with protocol string in actor id generation (#1668)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 20 Jul 2021 16:55:04 +0000 (12:55 -0400)
committerGitHub <noreply@github.com>
Tue, 20 Jul 2021 16:55:04 +0000 (16:55 +0000)
crates/apub/src/lib.rs

index c79d14bd7ada56462773b4620f79310fa9e80fc3..1b1e3d37f690a1a53a6b92c0487757c53e3f0342 100644 (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)