upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/nostr/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/nostr/builder.rs')
-rw-r--r--src/nostr/builder.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nostr/builder.rs b/src/nostr/builder.rs
index 3d7a0d8..da81e64 100644
--- a/src/nostr/builder.rs
+++ b/src/nostr/builder.rs
@@ -69,6 +69,11 @@ impl Nip34WritePolicy {
69 } 69 }
70 } 70 }
71 71
72 /// Get a reference to the purgatory for read-only access
73 pub fn purgatory(&self) -> &std::sync::Arc<crate::purgatory::Purgatory> {
74 &self.ctx.purgatory
75 }
76
72 /// Handle repository announcement event 77 /// Handle repository announcement event
73 async fn handle_announcement(&self, event: &Event) -> WritePolicyResult { 78 async fn handle_announcement(&self, event: &Event) -> WritePolicyResult {
74 let event_id_str = event.id.to_bech32().unwrap_or_else(|_| event.id.to_hex()); 79 let event_id_str = event.id.to_bech32().unwrap_or_else(|_| event.id.to_hex());