upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/login.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-07-17 17:33:29 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-07-17 17:34:27 +0100
commit0379a7ad4c1c6876c32286adb1cf090e3afdc5ea (patch)
tree3ebde10b399214bc6509bb81806088bb7b552383 /src/login.rs
parent7227db8d2a506912eb5ffd3d25dee1c95544cbf4 (diff)
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.
Diffstat (limited to 'src/login.rs')
-rw-r--r--src/login.rs6
1 files changed, 5 insertions, 1 deletions
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(
628 let term = console::Term::stderr(); 628 let term = console::Term::stderr();
629 term.write_line("searching for profile...")?; 629 term.write_line("searching for profile...")?;
630 let (_, progress_reporter) = client 630 let (_, progress_reporter) = client
631 .fetch_all(git_repo.get_path()?, &HashSet::new()) 631 .fetch_all(
632 git_repo.get_path()?,
633 &HashSet::new(),
634 &HashSet::from_iter(vec![*public_key]),
635 )
632 .await?; 636 .await?;
633 events = get_event_from_global_cache(git_repo.get_path()?, filters).await?; 637 events = get_event_from_global_cache(git_repo.get_path()?, filters).await?;
634 if !events.is_empty() { 638 if !events.is_empty() {