From 8638b321fdff94d034ec912ecd0910b6f564ff04 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 24 Jul 2024 16:37:10 +0100 Subject: refactor: use nip34 kinds from rust-nostr instead of Kind::Custom(u16) as v33 of rust-nostr introduced them --- src/sub_commands/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sub_commands/init.rs') 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::{ login, repo_ref::{ extract_pks, get_repo_config_from_yaml, save_repo_config_to_yaml, - try_and_get_repo_coordinates, RepoRef, REPO_REF_KIND, + try_and_get_repo_coordinates, RepoRef, }, Cli, }; @@ -336,7 +336,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { git_repo.save_git_config_item( "nostr.repo", &Coordinate { - kind: Kind::Custom(REPO_REF_KIND), + kind: Kind::GitRepoAnnouncement, public_key: user_ref.public_key, identifier: identifier.clone(), relays: vec![], -- cgit v1.2.3