fix(config): remove unused duplicate custom handle url config key

This commit is contained in:
nelind
2026-03-08 00:05:38 +01:00
parent 5450467011
commit e02e8c9e8c
2 changed files with 1 additions and 13 deletions
-12
View File
@@ -406,11 +406,6 @@ pub struct ServerConfig {
#[config(env = "PDS_USER_HANDLE_DOMAINS", parse_env = split_comma_list)]
pub user_handle_domains: Option<Vec<String>>,
/// List of domains available for user registration.
/// Defaults to the PDS hostname when not set.
#[config(env = "AVAILABLE_USER_DOMAINS", parse_env = split_comma_list)]
pub available_user_domains: Option<Vec<String>>,
/// Enable PDS-hosted did:web identities. Hosting did:web requires a
/// long-term commitment to serve DID documents; opt-in only.
#[config(env = "ENABLE_PDS_HOSTED_DID_WEB", default = false)]
@@ -470,13 +465,6 @@ impl ServerConfig {
self.banned_words.clone().unwrap_or_default()
}
/// Returns the available user domains, falling back to `[hostname_without_port]`.
pub fn available_user_domain_list(&self) -> Vec<String> {
self.available_user_domains
.clone()
.unwrap_or_else(|| vec![self.hostname_without_port().to_string()])
}
/// Returns the user handle domains, falling back to `[hostname_without_port]`.
pub fn user_handle_domain_list(&self) -> Vec<String> {
self.user_handle_domains
+1 -1
View File
@@ -34,7 +34,7 @@ pub fn is_self_hosted_did_web_enabled() -> bool {
pub async fn describe_server() -> impl IntoResponse {
let cfg = tranquil_config::get();
let pds_hostname = &cfg.server.hostname;
let domains = cfg.server.available_user_domain_list();
let domains = cfg.server.user_handle_domain_list();
let invite_code_required = cfg.server.invite_code_required;
let privacy_policy = cfg.server.privacy_policy_url.clone();
let terms_of_service = cfg.server.terms_of_service_url.clone();