mirror of
https://github.com/urbit/shrub.git
synced 2024-12-29 23:23:52 +03:00
8bf3c809a4
push-hook: replace +should-proxy-update with +transform-proxy-update
41 lines
703 B
Plaintext
41 lines
703 B
Plaintext
/- *post, met=metadata-store
|
|
|_ i=indexed-post
|
|
++ grow
|
|
|%
|
|
++ noun i
|
|
::
|
|
++ 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]
|
|
==
|
|
::
|
|
++ notification-kind
|
|
?+ index.p.i ~
|
|
[@ ~] `[%message [0 1] %count %none]
|
|
==
|
|
::
|
|
++ transform-add-nodes
|
|
|= [=index =post =atom was-parent-modified=?]
|
|
^- [^index ^post]
|
|
=- [- post(index -)]
|
|
[atom ~]
|
|
--
|
|
++ grab
|
|
|%
|
|
++ noun
|
|
|= p=*
|
|
=/ ip ;;(indexed-post p)
|
|
?> ?=([@ ~] index.p.ip)
|
|
ip
|
|
--
|
|
::
|
|
++ grad %noun
|
|
--
|