From 76f99af3c98a689441315b5ed087c4b83c083191 Mon Sep 17 00:00:00 2001 From: polwex Date: Tue, 18 Nov 2025 16:58:46 +0700 Subject: refactooooring --- app/sur/nostrill.hoon | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'app/sur/nostrill.hoon') diff --git a/app/sur/nostrill.hoon b/app/sur/nostrill.hoon index c06c20c..b6aeb3a 100644 --- a/app/sur/nostrill.hoon +++ b/app/sur/nostrill.hoon @@ -88,18 +88,30 @@ $% [%reply p=post:tp] $% [%add p=@t] [%del p=@ud] :: - [%sync ~] + relay-handling + == + +$ relay-handling + $% [%sync ~] + [%user pubkey=@ux] + [%thread id=@ux] :: send event for... relaying [%send host=@p id=@ relays=(list @t)] == :: facts +$ fact - $% [%nostr feed=nostr-feed] + $% [%nostr nostr-fact] [%post post-fact] [%enga p=post-wrapper reaction=*] [%fols fols-fact] [%hark =notif] == + +$ nostr-fact + $% [%feed feed=nostr-feed] + [%user feed=nostr-feed] + [%thread feed=nostr-feed] + [%event event:nostr] + [%relays (map @ relay-stats:nostr)] + == +$ post-fact $% [%add post-wrapper] [%del post-wrapper] -- cgit v1.2.3