urbit/pkg/landscape/mar/graph/validator/dm.hoon

35 lines
610 B
Plaintext
Raw Normal View History

2021-09-06 06:31:11 +03:00
/- *post, met=metadata-store, hark=hark-graph-hook
/+ graph=graph-store
2021-04-23 04:39:29 +03:00
|_ i=indexed-post
2021-09-06 06:31:11 +03:00
::
++ grow
2021-04-23 04:39:29 +03:00
|%
++ noun i
::
++ graph-indexed-post
^- indexed-post
?> ?=(?([@ ~] [@ @ ~]) index.p.i)
?> (lth i.index.p.i (bex 128))
i
::
2021-04-23 04:39:29 +03:00
++ notification-kind
2021-09-06 06:31:11 +03:00
|= title=cord
2021-04-23 04:39:29 +03:00
^- (unit notif-kind:hark)
?+ index.p.i ~
2021-09-06 06:31:11 +03:00
[@ @ ~]
:- ~
:* ~[text+'New messages from ' ship+author.p.i]
(hark-contents:graph contents.p.i)
[1 2] %count %none
==
2021-04-23 04:39:29 +03:00
==
::
--
++ grab
|%
++ noun indexed-post
2021-04-23 04:39:29 +03:00
--
::
++ grad %noun
--