Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Add imageUrl, title and description fields to node config
✗ CI failure Rūdolfs Ošiņš committed 1 year ago
commit 85e623dae3ff6b97596b63aeaada484a51ffec15
parent 765fc48c8496b35717a53405d745b154fc655955
1 failed (1 total) View logs
1 file changed +9 -0
modified radicle/src/web.rs
@@ -10,6 +10,15 @@ use crate::prelude::RepoId;
pub struct Config {
    /// Pinned content.
    pub pinned: Pinned,
+
    /// URL pointing to an image shown on the node page header in radicle-explorer.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub image_url: Option<String>,
+
    /// Node title.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub title: Option<String>,
+
    /// Node description.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub description: Option<String>,
}

/// Pinned content. This can be used to pin certain content when