summaryrefslogtreecommitdiff
path: root/app/sur/nostrill
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-06 01:01:41 +0700
committerpolwex <polwex@sortug.com>2025-10-06 01:01:41 +0700
commitc4b392a179048f936c062f5ffccc2bc25627e500 (patch)
tree09be0904be8ec4d7ea52992ef7580d42ed0c28c1 /app/sur/nostrill
working
Diffstat (limited to 'app/sur/nostrill')
-rw-r--r--app/sur/nostrill/comms.hoon41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/sur/nostrill/comms.hoon b/app/sur/nostrill/comms.hoon
new file mode 100644
index 0000000..42ea1ba
--- /dev/null
+++ b/app/sur/nostrill/comms.hoon
@@ -0,0 +1,41 @@
+/- sur=nostrill, nsur=nostr, feed=trill-feed, post=trill-post
+|%
++$ poke
+ $% [%req req]
+ [%res res]
+ [%dbug *]
+ ==
++$ emgagement
+ $% [%reply host=@p id=@da]
+ [%del-reply host=@p id=@da]
+ [%reaction host=@p id=@da reaction=@t]
+ ==
++$ req
+ $% [%feed ~]
+ [%thread id=@da]
+ ==
++$ res
+ $% [%ok p=res-data]
+ [%ng msg=@t]
+ ==
++$ res-data
+ $% [%feed =fc:feed profile=(unit user-meta:nsur)]
+ [%thread p=full-node:post]
+ ==
+:: TODO there's some overlap between what we send to the UI and we send to our followers
+:: but it's not exactly the same
++$ fact
+ $% [%post post-fact]
+ [%prof prof-fact]
+ [%init res]
+ ==
++$ post-fact
+ $% [%add p=post:post]
+ [%del id=@da]
+ [%changes p=post:post]
+ ==
++$ prof-fact
+ $% [%prof =user-meta:nsur]
+ [%keys pub=@ux]
+ ==
+--