urbit/pkg/landscape/sur/hark-graph-hook.hoon
2021-09-06 13:31:11 +10:00

37 lines
611 B
Plaintext

/- *resource, graph-store, post, store=hark-store
^?
|%
::
+$ mode ?(%each %count %none)
::
+$ watch-for ?(%siblings %children %none)
::
+$ index-len
[parent=@ud self=@ud]
::
+$ notif-kind
$: title=(list content:store)
body=(list content:store)
=index-len
=mode
=watch-for
==
::
+$ action
$%
[?(%listen %ignore) graph=resource =index:post]
[%set-mentions mentions=?]
[%set-watch-on-self watch-on-self=?]
==
::
+$ update
$%
action
$: %initial
watching=(set [resource index:post])
mentions=_&
watch-on-self=_&
==
==
--