upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sub_commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/sub_commands')
-rw-r--r--src/sub_commands/list.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sub_commands/list.rs b/src/sub_commands/list.rs
index f7397f1..ad5a28d 100644
--- a/src/sub_commands/list.rs
+++ b/src/sub_commands/list.rs
@@ -732,7 +732,7 @@ pub async fn find_proposal_events(
732 repo_ref: &RepoRef, 732 repo_ref: &RepoRef,
733 root_commit: &str, 733 root_commit: &str,
734) -> Result<Vec<nostr::Event>> { 734) -> Result<Vec<nostr::Event>> {
735 Ok(client 735 let mut proposals = client
736 .get_events( 736 .get_events(
737 repo_ref.relays.clone(), 737 repo_ref.relays.clone(),
738 vec![ 738 vec![
@@ -773,7 +773,10 @@ pub async fn find_proposal_events(
773 })) 773 }))
774 }) 774 })
775 .map(std::borrow::ToOwned::to_owned) 775 .map(std::borrow::ToOwned::to_owned)
776 .collect::<Vec<nostr::Event>>()) 776 .collect::<Vec<nostr::Event>>();
777 proposals.sort_by_key(|e| e.created_at);
778 proposals.reverse();
779 Ok(proposals)
777} 780}
778 781
779pub async fn find_commits_for_proposal_root_events( 782pub async fn find_commits_for_proposal_root_events(