diff options
| author | polwex <polwex@sortug.com> | 2025-11-19 05:47:15 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-11-19 05:47:15 +0700 |
| commit | e6e657be3a3b1dae426b46f3bc16f9a5cf4861c2 (patch) | |
| tree | 8c04343c4b13861f2124b34f16652418e671e423 /app/lib/json/nostrill.hoon | |
| parent | 4bad4b5705144b6a537053c68c3c2c3f5984de85 (diff) | |
Improvements to handling nostr post on backend
Diffstat (limited to 'app/lib/json/nostrill.hoon')
| -rw-r--r-- | app/lib/json/nostrill.hoon | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/app/lib/json/nostrill.hoon b/app/lib/json/nostrill.hoon index 01cdb13..e6bfd4c 100644 --- a/app/lib/json/nostrill.hoon +++ b/app/lib/json/nostrill.hoon @@ -82,6 +82,7 @@ ?- -.f %nostr (en-nostr +.f) %post (postfact +.f) + %prof (en-profiles +.f) %enga (enga +.f) %fols (fols +.f) %hark (hark +.f) @@ -228,6 +229,7 @@ %- of :~ add+ui-meta del+ul + fetch+(ar user) == ++ ui-meta %- ot :~ @@ -255,25 +257,25 @@ ++ reply %- ot :~ content+so - host+(se:de:common %p) - id+de-atom-id - thread+de-atom-id + host+user + id+de-post-id + id+de-post-id == ++ quote %- ot :~ content+so - host+(se:de:common %p) - id+de-atom-id + host+user + id+de-post-id == ++ pid %- ot :~ - host+(se:de:common %p) + host+user id+de-atom-id == ++ reaction %- ot :~ - host+(se:de:common %p) - id+de-atom-id + host+user + id+de-post-id reaction+so == ++ rt @@ -287,6 +289,7 @@ add+so del+de-atom-id sync+ul + prof+ul user+hex:de:common thread+hex:de:common send+de-relay-send @@ -296,6 +299,14 @@ id+de-atom-id relays+(ar so) == + +++ de-post-id + |= jon=json ^- (unit @) + ?. ?=([%s @t] jon) ~ + =/ tryatom (rush p.jon dem) + ?^ tryatom tryatom + ^- (unit @) (hex:de:common jon) + ++ de-atom-id |= jon=json ^- (unit @) ?. ?=([%s @t] jon) ~ |
