upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-07-23 08:55:03 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2025-07-23 08:55:03 +0100
commitb4253bb0c543ceef896e0a95482b5403a29a7878 (patch)
tree16d693a3f6aac72bdd97ac565296a84d355d65a9 /src/bin/git_remote_nostr
parentecfb54e1c89455590f816152b9efb722f0115bf1 (diff)
fix(status): only use events from author and maintainers
instead of status events from any pubkey
Diffstat (limited to 'src/bin/git_remote_nostr')
-rw-r--r--src/bin/git_remote_nostr/utils.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs
index d0b4e7e..563c0d8 100644
--- a/src/bin/git_remote_nostr/utils.rs
+++ b/src/bin/git_remote_nostr/utils.rs
@@ -131,6 +131,7 @@ pub async fn get_open_or_draft_proposals(
131 && e.tags.iter().any(|t| { 131 && e.tags.iter().any(|t| {
132 t.as_slice().len() > 1 && t.as_slice()[1].eq(&proposal.id.to_string()) 132 t.as_slice().len() > 1 && t.as_slice()[1].eq(&proposal.id.to_string())
133 }) 133 })
134 && (proposal.pubkey.eq(&e.pubkey) || repo_ref.maintainers.contains(&e.pubkey))
134 }) 135 })
135 .collect::<Vec<&nostr::Event>>() 136 .collect::<Vec<&nostr::Event>>()
136 .first() 137 .first()