upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sub_commands/push.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-04-22 07:26:15 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-05-07 09:10:33 +0100
commit10498b953d36304b441fcb162155c2487046206f (patch)
treecea78cfbb83dbbe5ddae12ffde18df94ae7d6746 /src/sub_commands/push.rs
parentc4853f69dc25408ff70cccbe923d2cd400385fc2 (diff)
feat(send): `in-reply-to` tags npubs and events
in addition to being used to create a new proposal revision, in-reply-to can now be used to reference other events and npubs. for example an issues or kind 1 threads where the proposal is relevant the proposal will only be marked as a revision if the first parameter is a reference to an existing proposal root
Diffstat (limited to 'src/sub_commands/push.rs')
-rw-r--r--src/sub_commands/push.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sub_commands/push.rs b/src/sub_commands/push.rs
index bb50ee2..fefe102 100644
--- a/src/sub_commands/push.rs
+++ b/src/sub_commands/push.rs
@@ -108,7 +108,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
108 cli_args, 108 cli_args,
109 &sub_commands::send::SubCommandArgs { 109 &sub_commands::send::SubCommandArgs {
110 since_or_range: String::new(), 110 since_or_range: String::new(),
111 in_reply_to: Some(proposal_root_event.id.to_string()), 111 in_reply_to: vec![proposal_root_event.id.to_string()],
112 title: None, 112 title: None,
113 description: None, 113 description: None,
114 no_cover_letter: args.no_cover_letter, 114 no_cover_letter: args.no_cover_letter,
@@ -166,6 +166,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
166 None, 166 None,
167 None, 167 None,
168 &None, 168 &None,
169 &[],
169 ) 170 )
170 .context("cannot make patch event from commit")?, 171 .context("cannot make patch event from commit")?,
171 ); 172 );