From 623cae575f8c9ce33f2d7fdc2526db495f846acb Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 5 Jan 2026 13:05:17 +0000 Subject: purgatory: add state git data sync --- src/nostr/policy/state.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nostr') diff --git a/src/nostr/policy/state.rs b/src/nostr/policy/state.rs index 48435ea..9ca3ee6 100644 --- a/src/nostr/policy/state.rs +++ b/src/nostr/policy/state.rs @@ -173,6 +173,14 @@ impl StatePolicy { self.ctx .purgatory .add_state(event.clone(), state.identifier.clone(), event.pubkey); + + // Trigger background git data sync from remote servers + self.ctx.purgatory.start_state_sync( + state.clone(), + self.ctx.database.clone(), + Some(self.ctx.domain.clone()), + ); + tracing::info!( "state event added to purgatory: eventid: {}, identifier: {}", state.event.id, -- cgit v1.2.3