summaryrefslogtreecommitdiff
path: root/app/sur
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-11-19 05:47:15 +0700
committerpolwex <polwex@sortug.com>2025-11-19 05:47:15 +0700
commite6e657be3a3b1dae426b46f3bc16f9a5cf4861c2 (patch)
tree8c04343c4b13861f2124b34f16652418e671e423 /app/sur
parent4bad4b5705144b6a537053c68c3c2c3f5984de85 (diff)
Improvements to handling nostr post on backend
Diffstat (limited to 'app/sur')
-rw-r--r--app/sur/nostrill.hoon13
1 files changed, 8 insertions, 5 deletions
diff --git a/app/sur/nostrill.hoon b/app/sur/nostrill.hoon
index b6aeb3a..192553b 100644
--- a/app/sur/nostrill.hoon
+++ b/app/sur/nostrill.hoon
@@ -69,12 +69,12 @@ $% [%reply p=post:tp]
==
+$ post-poke
$% [%add content=@t]
- [%reply content=@t host=@p id=@da thread=@da]
- [%quote content=@t host=@p id=@da]
- [%rp host=@p id=@da] :: NIP-18
- [%reaction host=@p id=@da reaction=@t]
+ [%reply content=@t host=user id=@da thread=@da]
+ [%quote content=@t host=user id=@da]
+ [%rp host=user id=@da] :: NIP-18
+ [%reaction host=user id=@da reaction=@t]
:: [%rt id=@ux pubkey=@ux relay=@t] :: NIP-18
- [%del host=@p id=@da]
+ [%del host=user id=@da]
==
+$ fols-poke
$% [%add =user]
@@ -83,6 +83,7 @@ $% [%reply p=post:tp]
+$ prof-poke
$% [%add meta=user-meta:nostr]
[%del ~]
+ [%fetch p=(list user)]
==
+$ relay-poke
$% [%add p=@t]
@@ -92,6 +93,7 @@ $% [%reply p=post:tp]
==
+$ relay-handling
$% [%sync ~]
+ [%prof ~]
[%user pubkey=@ux]
[%thread id=@ux]
:: send event for... relaying
@@ -101,6 +103,7 @@ $% [%reply p=post:tp]
+$ fact
$% [%nostr nostr-fact]
[%post post-fact]
+ [%prof (map user user-meta:nostr)]
[%enga p=post-wrapper reaction=*]
[%fols fols-fact]
[%hark =notif]