upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sub_commands/init.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-07-24 16:37:10 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-07-24 16:37:10 +0100
commit8638b321fdff94d034ec912ecd0910b6f564ff04 (patch)
tree411e0ca989d8c53be5b11b39461297bf6a92d781 /src/sub_commands/init.rs
parent95cb9c040dfa8ca18bf907a44a86df35b316b6ca (diff)
refactor: use nip34 kinds from rust-nostr
instead of Kind::Custom(u16) as v33 of rust-nostr introduced them
Diffstat (limited to 'src/sub_commands/init.rs')
-rw-r--r--src/sub_commands/init.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sub_commands/init.rs b/src/sub_commands/init.rs
index 2a97779..1c51375 100644
--- a/src/sub_commands/init.rs
+++ b/src/sub_commands/init.rs
@@ -16,7 +16,7 @@ use crate::{
16 login, 16 login,
17 repo_ref::{ 17 repo_ref::{
18 extract_pks, get_repo_config_from_yaml, save_repo_config_to_yaml, 18 extract_pks, get_repo_config_from_yaml, save_repo_config_to_yaml,
19 try_and_get_repo_coordinates, RepoRef, REPO_REF_KIND, 19 try_and_get_repo_coordinates, RepoRef,
20 }, 20 },
21 Cli, 21 Cli,
22}; 22};
@@ -336,7 +336,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
336 git_repo.save_git_config_item( 336 git_repo.save_git_config_item(
337 "nostr.repo", 337 "nostr.repo",
338 &Coordinate { 338 &Coordinate {
339 kind: Kind::Custom(REPO_REF_KIND), 339 kind: Kind::GitRepoAnnouncement,
340 public_key: user_ref.public_key, 340 public_key: user_ref.public_key,
341 identifier: identifier.clone(), 341 identifier: identifier.clone(),
342 relays: vec![], 342 relays: vec![],