upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/lib/repo_ref.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-05-23 07:53:32 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2025-05-23 07:53:32 +0100
commit2596140ba29dc959643ae02fb2db4de980ee12e9 (patch)
tree54fcc06591020d7ff3d583311170f403a812916d /src/lib/repo_ref.rs
parentf382b1307ea1020b7dc8fcd9c7fc02f2f612bef7 (diff)
fix: remove blossom url trailing slash
when creating announcment with `ngit init`
Diffstat (limited to 'src/lib/repo_ref.rs')
-rw-r--r--src/lib/repo_ref.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/repo_ref.rs b/src/lib/repo_ref.rs
index 1a0fe85..df1427a 100644
--- a/src/lib/repo_ref.rs
+++ b/src/lib/repo_ref.rs
@@ -18,6 +18,7 @@ use serde::{Deserialize, Serialize};
18#[cfg(not(test))] 18#[cfg(not(test))]
19use crate::client::Client; 19use crate::client::Client;
20use crate::{ 20use crate::{
21 UrlWithoutSlash,
21 cli_interactor::{ 22 cli_interactor::{
22 Interactor, InteractorPrompt, PromptChoiceParms, PromptConfirmParms, PromptInputParms, 23 Interactor, InteractorPrompt, PromptChoiceParms, PromptConfirmParms, PromptInputParms,
23 }, 24 },
@@ -204,7 +205,9 @@ impl RepoRef {
204 } else { 205 } else {
205 vec![Tag::custom( 206 vec![Tag::custom(
206 nostr::TagKind::Custom(std::borrow::Cow::Borrowed("blossoms")), 207 nostr::TagKind::Custom(std::borrow::Cow::Borrowed("blossoms")),
207 self.blossoms.iter().map(|r| r.to_string()), 208 self.blossoms
209 .iter()
210 .map(|r| r.to_string_without_trailing_slash()),
208 )] 211 )]
209 }, 212 },
210 // code languages and hashtags 213 // code languages and hashtags