summaryrefslogtreecommitdiff
path: root/desk/sur/nostrill.hoon
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-09-17 15:56:00 +0700
committerpolwex <polwex@sortug.com>2025-09-17 15:56:00 +0700
commitf0df4c7297a05bd592d8717b8997284c80fd0500 (patch)
tree2d38e079e971a2e98e78a0f7a3104f2bd3c5daeb /desk/sur/nostrill.hoon
parent387af8fc1603805b02ce03f8adba4fa73a954f7c (diff)
argh
Diffstat (limited to 'desk/sur/nostrill.hoon')
-rw-r--r--desk/sur/nostrill.hoon25
1 files changed, 21 insertions, 4 deletions
diff --git a/desk/sur/nostrill.hoon b/desk/sur/nostrill.hoon
index ad82661..a9ef8f3 100644
--- a/desk/sur/nostrill.hoon
+++ b/desk/sur/nostrill.hoon
@@ -1,4 +1,4 @@
-/- trill=trill-feed, nostr
+/- trill=trill-feed, tp=trill-post, nostr
|%
+$ state state-0
+$ state-0
@@ -14,13 +14,21 @@
profiles=(map @ux user-meta:nostr)
following=(map @ux =feed:trill)
follow-graph=(map @ux (set follow))
- :: for http requests
- pending=(map @t [pending=filter:nostr done=filter:nostr])
:: TODO global feed somehow?
==
+$ nostr-feed ((mop @ud event:nostr) gth)
++ norm ((on @ud event:nostr) gth)
++$ nfc [feed=nostr-feed start=cursor:trill end=cursor:trill]
+
++$ post-wrapper [=post:tp nostr-meta=nostr-meta]
++$ nostr-meta
+$: pub=(unit @ux)
+ ev-id=(unit @ux)
+ relay=(unit @t)
+ pr=(unit user-meta:nostr)
+==
+
+$ follow [pubkey=@ux name=@t relay=(unit @t)]
++ ui
|%
@@ -33,7 +41,7 @@
[%rela relay-poke]
==
+$ post-poke
- $% [%add pubkey=@ux content=@t]
+ $% [%add content=@t]
[%rt id=@ux pubkey=@ux relay=@t] :: NIP-18
[%del pubkey=@ux]
==
@@ -48,5 +56,14 @@
+$ relay-poke
$% [%send host=@p id=@ relays=(list @t)]
==
+ :: facts
+ +$ fact
+ $% [%post post-fact]
+ [%enga p=post-wrapper reaction=*]
+ ==
+ +$ post-fact
+ $% [%add post-wrapper]
+ [%del post-wrapper]
+ ==
--
--