diff --git a/config.toml b/config.toml index 280b64d..5a2b324 100644 --- a/config.toml +++ b/config.toml @@ -13,8 +13,8 @@ description = "A newly created nostr-rs-relay.\n\nCustomize this with your own i # Administrative contact pubkey #pubkey = "0c2d168a4ae8ca58c9f1ab237b5df682599c6c7ab74307ea8b05684b60405d41" -# Administrative contact email -#email = "contact@example.com" +# Administrative contact URI +#contact = "mailto:contact@example.com" [database] # Directory for SQLite files. Defaults to the current directory. Can diff --git a/src/config.rs b/src/config.rs index 2128244..e2cdbde 100644 --- a/src/config.rs +++ b/src/config.rs @@ -15,7 +15,7 @@ pub struct Info { pub name: Option, pub description: Option, pub pubkey: Option, - pub email: Option, + pub contact: Option, } #[derive(Debug, Serialize, Deserialize)] @@ -105,7 +105,7 @@ impl Default for Settings { name: Some("Unnamed nostr-rs-relay".to_owned()), description: None, pubkey: None, - email: None, + contact: None, }, database: Database { data_directory: ".".to_owned(), diff --git a/src/info.rs b/src/info.rs index 24cc758..3f3e4b1 100644 --- a/src/info.rs +++ b/src/info.rs @@ -16,7 +16,7 @@ pub struct RelayInfo { #[serde(skip_serializing_if = "Option::is_none")] pub pubkey: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub email: Option, + pub contact: Option, #[serde(skip_serializing_if = "Option::is_none")] pub supported_nips: Option>, #[serde(skip_serializing_if = "Option::is_none")] @@ -33,7 +33,7 @@ impl From for RelayInfo { name: i.name, description: i.description, pubkey: i.pubkey, - email: i.email, + contact: i.contact, supported_nips: Some(vec![1]), software: Some("https://git.sr.ht/~gheartsfield/nostr-rs-relay".to_owned()), version: CARGO_PKG_VERSION.map(|x| x.to_owned()),