From 9c71e875e47e6de286abf7d1964e53a08bdee173 Mon Sep 17 00:00:00 2001 From: mroxso <24775431+mroxso@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:28:37 +0100 Subject: [PATCH] fix typo in relay information about payments url (#15) * fix typo in relay information about payments url * Update info.rs --------- Co-authored-by: mroxso --- src/info.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/info.rs b/src/info.rs index 3f966ca6..8eb2b04f 100644 --- a/src/info.rs +++ b/src/info.rs @@ -58,7 +58,7 @@ pub struct RelayInfo { #[serde(skip_serializing_if = "Option::is_none")] pub limitation: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub payment_url: Option, + pub payments_url: Option, #[serde(skip_serializing_if = "Option::is_none")] pub fees: Option, } @@ -86,7 +86,7 @@ impl From for RelayInfo { ), }; - let (payment_url, fees) = if p.enabled { + let (payments_url, fees) = if p.enabled { let admission_fee = if p.admission_cost > 0 { Some(vec![Fee { amount: p.admission_cost * 1000, @@ -110,7 +110,7 @@ impl From for RelayInfo { publication: post_fee, }; - let payment_url = if p.enabled && i.relay_url.is_some() { + let payments_url = if p.enabled && i.relay_url.is_some() { Some(format!( "{}join", i.relay_url.clone().unwrap().replace("ws", "http") @@ -118,7 +118,7 @@ impl From for RelayInfo { } else { None }; - (payment_url, Some(fees)) + (payments_url, Some(fees)) } else { (None, None) }; @@ -130,10 +130,10 @@ impl From for RelayInfo { pubkey: i.pubkey, contact: i.contact, supported_nips: Some(supported_nips), - software: Some("https://github.com/mroxso/nostr-rs-relay".to_owned()), + software: Some("https://git.sr.ht/~gheartsfield/nostr-rs-relay".to_owned()), version: CARGO_PKG_VERSION.map(std::borrow::ToOwned::to_owned), limitation: Some(limitations), - payment_url, + payments_url, fees, icon: i.relay_icon, }