feat(NIP-11): relay_icon option added

This commit is contained in:
Václav Navrátil
2023-07-16 11:42:41 -05:00
committed by Greg Heartsfield
parent c50e10aa21
commit 70dfcb6a04
3 changed files with 8 additions and 0 deletions
+3
View File
@@ -45,6 +45,8 @@ pub struct RelayInfo {
#[serde(skip_serializing_if = "Option::is_none")]
pub contact: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub icon: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub supported_nips: Option<Vec<i64>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub software: Option<String>,
@@ -124,6 +126,7 @@ impl From<Settings> for RelayInfo {
limitation: Some(limitations),
payment_url,
fees,
icon: i.relay_icon,
}
}
}