diff options
Diffstat (limited to 'src/nostr/builder.rs')
| -rw-r--r-- | src/nostr/builder.rs | 5 |
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()); |