mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 01:01:37 +03:00
54b3982b42
This commit changes the type of update:graph-store and as such, a new mark has been created. graph-store now consumes and produces %graph-update-1. This new mark type is backwards incompatible with the previous mark.
21 lines
431 B
Plaintext
21 lines
431 B
Plaintext
:: 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
|
|
==
|
|
::
|
|
:- %graph-update-1
|
|
^- update
|
|
:- now
|
|
:+ %add-nodes [our name]
|
|
%- ~(gas by *(map index node))
|
|
~[[[now]~ [post [%empty ~]]]]
|