urbit/pkg/arvo/sur/hark-graph-hook.hoon

32 lines
516 B
Plaintext
Raw Normal View History

/- *resource, graph-store, post
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
[name=@t =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
--