2021-03-05 21:26:30 +03:00
|
|
|
/- *post, met=metadata-store
|
|
|
|
|_ i=indexed-post
|
|
|
|
++ grow
|
|
|
|
|%
|
|
|
|
++ noun i
|
|
|
|
++ graph-permissions-add
|
|
|
|
|= vip=vip-metadata:met
|
|
|
|
?: ?=([@ ~] index.p.i)
|
|
|
|
[%yes %yes %no]
|
|
|
|
[%yes %yes ?:(?=(%reader-comments vip) %yes %no)]
|
|
|
|
::
|
|
|
|
++ graph-permissions-remove
|
|
|
|
|= vip=vip-metadata:met
|
|
|
|
[%yes %self %self]
|
|
|
|
:: +notification-kind: no notifications for now
|
|
|
|
::
|
2021-03-23 08:29:07 +03:00
|
|
|
++ notification-kind
|
|
|
|
=/ len (lent index.p.i)
|
|
|
|
`[%post [(dec len) len] %none %children]
|
|
|
|
::
|
|
|
|
++ transform-add-nodes
|
2021-03-12 19:51:36 +03:00
|
|
|
|= [=index =post =atom was-parent-modified=?]
|
|
|
|
^- [^index ^post]
|
|
|
|
=- [- post(index -)]
|
|
|
|
?~ index !!
|
|
|
|
?: ?=([@ ~] index)
|
|
|
|
[atom ~]
|
|
|
|
?: was-parent-modified
|
|
|
|
~|(%cannot-submit-parents-with-prepopulated-children !!)
|
2021-03-16 01:28:45 +03:00
|
|
|
=/ ind=^index index
|
|
|
|
(snoc (snip ind) atom)
|
2021-03-05 21:26:30 +03:00
|
|
|
--
|
|
|
|
++ grab
|
|
|
|
|%
|
|
|
|
:: +noun: validate post
|
|
|
|
::
|
|
|
|
++ noun
|
|
|
|
|= p=*
|
|
|
|
=/ ip ;;(indexed-post p)
|
|
|
|
?> ?=(^ contents.p.ip)
|
2021-03-16 01:28:45 +03:00
|
|
|
ip
|
2021-03-05 21:26:30 +03:00
|
|
|
--
|
|
|
|
::
|
|
|
|
++ grad %noun
|
|
|
|
--
|