shrub/pkg/landscape/sur/hark-graph-hook.hoon

37 lines
611 B
Plaintext
Raw Normal View History

2021-09-06 06:31:11 +03:00
/- *resource, graph-store, post, store=hark-store
2020-10-21 09:02:51 +03:00
^?
|%
::
+$ mode ?(%each %count %none)
::
+$ watch-for ?(%siblings %children %none)
::
+$ index-len
[parent=@ud self=@ud]
::
+$ notif-kind
2021-09-06 06:31:11 +03:00
$: title=(list content:store)
body=(list content:store)
=index-len
=mode
=watch-for
==
::
2020-10-21 09:02:51 +03:00
+$ action
2020-10-27 08:04:39 +03:00
$%
[?(%listen %ignore) graph=resource =index:post]
2020-10-27 08:04:39 +03:00
[%set-mentions mentions=?]
[%set-watch-on-self watch-on-self=?]
==
2020-10-21 09:02:51 +03:00
::
2020-10-27 08:04:39 +03:00
+$ update
$%
action
$: %initial
watching=(set [resource index:post])
2020-10-27 08:04:39 +03:00
mentions=_&
watch-on-self=_&
==
==
2020-10-21 09:02:51 +03:00
--