diff options
author | polwex <polwex@sortug.com> | 2025-08-28 20:22:07 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-08-28 20:22:07 +0700 |
commit | bdb1eceba469206381a8fc50a0b62df41c19af8d (patch) | |
tree | 79da08bff7115298a3c2381dbf8c29e22f65bff7 /desk/sur/nostril.hoon | |
parent | 7c0681a06e0358887d2f64001dc43125554766c9 (diff) |
m
Diffstat (limited to 'desk/sur/nostril.hoon')
-rw-r--r-- | desk/sur/nostril.hoon | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/desk/sur/nostril.hoon b/desk/sur/nostril.hoon index 1e51695..87f6611 100644 --- a/desk/sur/nostril.hoon +++ b/desk/sur/nostril.hoon @@ -1,17 +1,25 @@ +/- feed |% ++ shim-url 'http://localhost:8888/shim' +$ state state-0 +$ state-0 $: %0 + :: nostr config relays=(set @t) events=(list event) :: let's limit it to 100 keys=(set keys) + :: feeds + own=feed:feed + following=(map @ux [profile=user-meta =feed:feed]) + follow-graph=(map @ux (set [pubkey=@ux name=@t relay=(unit @t)])) + :: TODO global feed somehow? + == +$ keys [pub=@ priv=@] ++ default ^- state-0 =/ s *state-0 s(relays (silt ~['wss://relay.damus.io' 'wss://nos.lol'])) :: NOSTR structs :: -++ event ++$ event $: id=@ux :: 32bytes pubkey=@ux :: 32bytes created-at=@ud :: seconds @@ -20,9 +28,15 @@ $: id=@ux :: 32bytes content=@t sig=@ux :: 64bytes == -++ tag ++$ tag $: key=@t value=@t rest=(list @t) == ++$ user-meta :: NIP-1 + (map @t @t) +:: $: name=@t +:: about=@t +:: pic=@t +:: == -- |