upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sync/self_subscriber.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-22 17:22:25 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-22 20:21:26 +0000
commit5d3d96c7f0397a079384b7291ff21df76029b126 (patch)
tree9bb558649611409b8612899776a865dd8232f783 /src/sync/self_subscriber.rs
parent777509bb03f5233b3ef470329d23cec371baf53c (diff)
accept all UserGraspList for better discovery
Diffstat (limited to 'src/sync/self_subscriber.rs')
-rw-r--r--src/sync/self_subscriber.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sync/self_subscriber.rs b/src/sync/self_subscriber.rs
index 9643fc0..09e3b56 100644
--- a/src/sync/self_subscriber.rs
+++ b/src/sync/self_subscriber.rs
@@ -285,6 +285,7 @@ impl SelfSubscriber {
285 285
286 // Subscribe to announcement and root event kinds 286 // Subscribe to announcement and root event kinds
287 // Per v4 spec: 30617, 1617, 1618, 1621 (NOT 30618) 287 // Per v4 spec: 30617, 1617, 1618, 1621 (NOT 30618)
288 // Plus kind 10317 (User Grasp List) for GRASP discovery
288 // Check if we have a last_connected time for reconnect filtering 289 // Check if we have a last_connected time for reconnect filtering
289 let filter = if let Some(last) = self.last_connected { 290 let filter = if let Some(last) = self.last_connected {
290 // Quick reconnect - use since filter (15 min buffer) 291 // Quick reconnect - use since filter (15 min buffer)
@@ -299,6 +300,7 @@ impl SelfSubscriber {
299 Kind::Custom(1617), // Patches 300 Kind::Custom(1617), // Patches
300 Kind::Custom(1621), // Issues 301 Kind::Custom(1621), // Issues
301 Kind::Custom(1618), // Pull Requests 302 Kind::Custom(1618), // Pull Requests
303 Kind::Custom(10317), // User Grasp List
302 ]) 304 ])
303 .since(since) 305 .since(since)
304 } else { 306 } else {
@@ -308,6 +310,7 @@ impl SelfSubscriber {
308 Kind::Custom(1617), // Patches 310 Kind::Custom(1617), // Patches
309 Kind::Custom(1621), // Issues 311 Kind::Custom(1621), // Issues
310 Kind::Custom(1618), // Pull Requests 312 Kind::Custom(1618), // Pull Requests
313 Kind::Custom(10317), // User Grasp List
311 ]) 314 ])
312 }; 315 };
313 316