hark-graph-hook: notifications for group feed

This commit is contained in:
Liam Fitzgerald 2021-03-23 15:29:07 +10:00
parent bdb3c56c7e
commit 22afdb3aea
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB
4 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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 -)]

View File

@ -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