From c4b392a179048f936c062f5ffccc2bc25627e500 Mon Sep 17 00:00:00 2001 From: polwex Date: Mon, 6 Oct 2025 01:01:41 +0700 Subject: working --- app/sur/nostrill/comms.hoon | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 app/sur/nostrill/comms.hoon (limited to 'app/sur/nostrill/comms.hoon') 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] + == +-- -- cgit v1.2.3