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

21 lines
435 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-03-11 07:00:50 +03:00
:- %graph-update-0
^- update
:+ %0 now
:+ %add-nodes [our name]
%- ~(gas by *(map index node))
~[[[now]~ [post [%empty ~]]]]