mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
hark-graph-hook: notifications for group feed
This commit is contained in:
parent
bdb3c56c7e
commit
22afdb3aea
@ -459,7 +459,6 @@
|
||||
=notif-kind:hook
|
||||
==
|
||||
^+ update-core
|
||||
?: ?=(%none mode.notif-kind) update-core
|
||||
=/ =stats-index:store
|
||||
(to-stats-index:store index)
|
||||
=. update-core
|
||||
|
@ -28,7 +28,6 @@
|
||||
?+ index.p.i ~
|
||||
[@ ~] `[%link [0 1] %each %children]
|
||||
[@ @ %1 ~] `[%comment [1 2] %count %siblings]
|
||||
[@ @ @ ~] `[%edit-comment [1 2] %none %none]
|
||||
==
|
||||
::
|
||||
++ transform-add-nodes
|
||||
|
@ -14,8 +14,11 @@
|
||||
[%yes %self %self]
|
||||
:: +notification-kind: no notifications for now
|
||||
::
|
||||
++ notification-kind ~
|
||||
++ transform-add-nodes
|
||||
++ notification-kind
|
||||
=/ len (lent index.p.i)
|
||||
`[%post [(dec len) len] %none %children]
|
||||
::
|
||||
++ transform-add-nodes
|
||||
|= [=index =post =atom was-parent-modified=?]
|
||||
^- [^index ^post]
|
||||
=- [- post(index -)]
|
||||
|
@ -26,9 +26,7 @@
|
||||
++ notification-kind
|
||||
?+ index.p.i ~
|
||||
[@ %1 %1 ~] `[%note [0 1] %each %children]
|
||||
[@ %1 @ ~] `[%edit-note [0 1] %none %none]
|
||||
[@ %2 @ %1 ~] `[%comment [1 3] %count %siblings]
|
||||
[@ %2 @ @ ~] `[%edit-comment [1 3] %none %none]
|
||||
==
|
||||
::
|
||||
++ transform-add-nodes
|
||||
|
Loading…
Reference in New Issue
Block a user