From 0379a7ad4c1c6876c32286adb1cf090e3afdc5ea Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 17 Jul 2024 17:33:29 +0100 Subject: fix(fetch): get profile with nsec cli parameter only the profile from the saved user was being fetched. tests are using cli login parameters and expecting to see the user's name but it was only showing the npub. fixed by allowing the explicit request of specfic user profiles. --- src/login.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/login.rs') diff --git a/src/login.rs b/src/login.rs index 0a20a90..6c3acfa 100644 --- a/src/login.rs +++ b/src/login.rs @@ -628,7 +628,11 @@ async fn get_user_details( let term = console::Term::stderr(); term.write_line("searching for profile...")?; let (_, progress_reporter) = client - .fetch_all(git_repo.get_path()?, &HashSet::new()) + .fetch_all( + git_repo.get_path()?, + &HashSet::new(), + &HashSet::from_iter(vec![*public_key]), + ) .await?; events = get_event_from_global_cache(git_repo.get_path()?, filters).await?; if !events.is_empty() { -- cgit v1.2.3