2021-01-26 07:54:29 +03:00
|
|
|
/- *post, met=metadata-store
|
2020-08-18 20:32:04 +03:00
|
|
|
|_ i=indexed-post
|
|
|
|
++ grow
|
|
|
|
|%
|
|
|
|
++ noun i
|
2021-01-26 07:54:29 +03:00
|
|
|
::
|
|
|
|
++ graph-permissions-add
|
|
|
|
|= vip=vip-metadata:met
|
|
|
|
=/ reader
|
|
|
|
?=(%reader-comments vip)
|
|
|
|
?+ index.p.i !!
|
|
|
|
[@ ~] [%yes %yes %no]
|
|
|
|
[@ @ ~] [%yes %yes ?:(reader %yes %no)]
|
|
|
|
[@ @ @ ~] [%self %self %self]
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ graph-permissions-remove
|
|
|
|
|= vip=vip-metadata:met
|
|
|
|
=/ reader
|
|
|
|
?=(%reader-comments vip)
|
|
|
|
?+ index.p.i !!
|
|
|
|
[@ ~] [%yes %self %self]
|
|
|
|
[@ @ ~] [%yes %self %self]
|
|
|
|
[@ @ @ ~] [%yes %self %self]
|
|
|
|
==
|
|
|
|
::
|
2020-10-21 09:01:14 +03:00
|
|
|
++ notification-kind
|
|
|
|
?+ index.p.i ~
|
2021-02-26 06:36:15 +03:00
|
|
|
[@ ~] `[%link [0 1] %each %children]
|
|
|
|
[@ @ %1 ~] `[%comment [1 2] %count %siblings]
|
2020-10-21 09:01:14 +03:00
|
|
|
==
|
2021-02-23 01:54:45 +03:00
|
|
|
::
|
|
|
|
++ transform-add-nodes
|
2021-02-24 21:25:53 +03:00
|
|
|
|= [=index =post =atom was-parent-modified=?]
|
2021-02-23 01:54:45 +03:00
|
|
|
^- [^index ^post]
|
2021-02-24 21:25:53 +03:00
|
|
|
=- [- post(index -)]
|
|
|
|
?+ index ~|(transform+[index post] !!)
|
|
|
|
[@ ~] [atom ~]
|
|
|
|
[@ @ ~] [i.index atom ~]
|
|
|
|
[@ @ @ ~]
|
|
|
|
?: was-parent-modified
|
2021-02-25 21:41:17 +03:00
|
|
|
[i.index atom i.t.t.index ~]
|
|
|
|
index
|
2021-02-24 21:25:53 +03:00
|
|
|
==
|
2020-08-18 20:32:04 +03:00
|
|
|
--
|
|
|
|
++ grab
|
|
|
|
|%
|
|
|
|
++ noun
|
|
|
|
|= p=*
|
|
|
|
=/ ip ;;(indexed-post p)
|
|
|
|
?+ index.p.ip ~|(index+index.p.ip !!)
|
2020-08-18 22:41:24 +03:00
|
|
|
:: top-level link post; title and url
|
2020-09-14 22:50:27 +03:00
|
|
|
::
|
2020-08-18 20:32:04 +03:00
|
|
|
[@ ~]
|
2021-03-29 05:39:37 +03:00
|
|
|
?> ?=([[%text @] $%([%url @] [%reference *]) ~] contents.p.ip)
|
2020-08-18 20:32:04 +03:00
|
|
|
ip
|
|
|
|
::
|
2020-11-10 22:56:19 +03:00
|
|
|
:: comment on link post; container structure
|
2020-08-18 20:32:04 +03:00
|
|
|
::
|
|
|
|
[@ @ ~]
|
2020-11-12 23:23:07 +03:00
|
|
|
?> ?=(~ contents.p.ip)
|
2020-08-18 20:32:04 +03:00
|
|
|
ip
|
2020-11-10 22:56:19 +03:00
|
|
|
::
|
|
|
|
:: comment on link post; comment text
|
|
|
|
::
|
|
|
|
[@ @ @ ~]
|
2020-11-12 23:23:07 +03:00
|
|
|
?> ?=(^ contents.p.ip)
|
2020-11-10 22:56:19 +03:00
|
|
|
ip
|
2020-08-18 20:32:04 +03:00
|
|
|
==
|
|
|
|
--
|
|
|
|
++ grad %noun
|
|
|
|
--
|