shrub/pkg/arvo/mar/graph/validator/chat.hoon

40 lines
647 B
Plaintext
Raw Normal View History

2021-01-26 07:50:33 +03:00
/- *post, met=metadata-store
|_ i=indexed-post
++ grow
|%
++ noun i
2021-01-26 07:50:33 +03:00
::
++ graph-permissions-add
|= vip=vip-metadata:met
?+ index.p.i !!
[@ ~] [%yes %yes %no]
==
::
++ graph-permissions-remove
|= vip=vip-metadata:met
?+ index.p.i !!
[@ ~] [%self %self %no]
==
::
2020-11-24 08:39:53 +03:00
++ notification-kind
?+ index.p.i ~
[@ ~] `[%message 0 %count %.n]
2020-11-24 08:39:53 +03:00
==
::
++ transform-add-nodes
|= [=index =post]
^- [^index ^post]
[index post]
--
++ grab
|%
++ noun
|= p=*
=/ ip ;;(indexed-post p)
?> ?=([@ ~] index.p.ip)
ip
--
::
++ grad %noun
--