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:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-02 13:53:47 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-02 13:55:38 +0000
commit11b1655638b5a328662187a27f85a84df60fc759 (patch)
treec26adc3bb7b5fcb0b2fe51b1e7bf9823bd970c4e /src/nostr/builder.rs
parent6e70994a30a0d0e537099094df2a8369b559586d (diff)
sync: use purgatory
don't save new events destined for purgatory events directly to db or serve on websockets don't download events already in purgatory via negentropy sync
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());