upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr/utils.rs')
-rw-r--r--src/bin/git_remote_nostr/utils.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs
index b54ce6b..5efb6e0 100644
--- a/src/bin/git_remote_nostr/utils.rs
+++ b/src/bin/git_remote_nostr/utils.rs
@@ -128,9 +128,9 @@ pub async fn get_open_proposals(
128 .iter() 128 .iter()
129 .filter(|e| { 129 .filter(|e| {
130 status_kinds().contains(&e.kind) 130 status_kinds().contains(&e.kind)
131 && e.tags 131 && e.tags.iter().any(|t| {
132 .iter() 132 t.as_slice().len() > 1 && t.as_slice()[1].eq(&proposal.id.to_string())
133 .any(|t| t.as_slice()[1].eq(&proposal.id.to_string())) 133 })
134 }) 134 })
135 .collect::<Vec<&nostr::Event>>() 135 .collect::<Vec<&nostr::Event>>()
136 .first() 136 .first()