urbit/pkg/landscape/gen/graph-store/add-post.hoon

21 lines
436 B
Plaintext
Raw Normal View History

:: graph-store|add-post: add post to a graph
::
/- *graph-store
:- %say
|= $: [now=@da eny=@uvJ =beak]
[[[our=ship name=term] contents=(list content) ~] ~]
==
=/ =post *post
=: author.post our
index.post [now]~
time-sent.post now
contents.post contents
==
::
2021-09-28 02:43:36 +03:00
:- %graph-update-3
^- update
:- now
:+ %add-nodes [our name]
%- ~(gas by *(map index node))
2021-04-14 23:49:54 +03:00
~[[[now]~ [[%& post] [%empty ~]]]]