···406406 #[config(env = "PDS_USER_HANDLE_DOMAINS", parse_env = split_comma_list)]
407407 pub user_handle_domains: Option<Vec<String>>,
408408409409- /// List of domains available for user registration.
410410- /// Defaults to the PDS hostname when not set.
411411- #[config(env = "AVAILABLE_USER_DOMAINS", parse_env = split_comma_list)]
412412- pub available_user_domains: Option<Vec<String>>,
413413-414409 /// Enable PDS-hosted did:web identities. Hosting did:web requires a
415410 /// long-term commitment to serve DID documents; opt-in only.
416411 #[config(env = "ENABLE_PDS_HOSTED_DID_WEB", default = false)]
···468463 /// Returns the extra banned words list, or an empty vec when unset.
469464 pub fn banned_word_list(&self) -> Vec<String> {
470465 self.banned_words.clone().unwrap_or_default()
471471- }
472472-473473- /// Returns the available user domains, falling back to `[hostname_without_port]`.
474474- pub fn available_user_domain_list(&self) -> Vec<String> {
475475- self.available_user_domains
476476- .clone()
477477- .unwrap_or_else(|| vec![self.hostname_without_port().to_string()])
478466 }
479467480468 /// Returns the user handle domains, falling back to `[hostname_without_port]`.
+1-1
crates/tranquil-pds/src/api/server/meta.rs
···3434pub async fn describe_server() -> impl IntoResponse {
3535 let cfg = tranquil_config::get();
3636 let pds_hostname = &cfg.server.hostname;
3737- let domains = cfg.server.available_user_domain_list();
3737+ let domains = cfg.server.user_handle_domain_list();
3838 let invite_code_required = cfg.server.invite_code_required;
3939 let privacy_policy = cfg.server.privacy_policy_url.clone();
4040 let terms_of_service = cfg.server.terms_of_service_url.clone();