shrub/pkg/arvo/mar/graph/validator/link.hoon
2020-11-03 16:12:07 +10:00

33 lines
558 B
Plaintext

/- *post
|_ i=indexed-post
++ grow
|%
++ noun i
++ notification-kind
?+ index.p.i ~
[@ ~] `%link
[@ @ ~] `%comment
==
--
++ grab
|%
++ noun
|= p=*
=/ ip ;;(indexed-post p)
?+ index.p.ip ~|(index+index.p.ip !!)
:: top-level link post; title and url
::
[@ ~]
?> ?=([[%text @] [%url @] ~] contents.p.ip)
ip
::
:: comment on link post; comment text
::
[@ @ ~]
?> ?=(^ contents.p.ip)
ip
==
--
++ grad %noun
--