mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
Merge pull request #5387 from urbit/lf/hark-publish-fix
hark-graph-hook: correctly get rear of index
This commit is contained in:
commit
7369c3570a
@ -61,6 +61,9 @@ export function Note(props: NoteProps & RouteComponentProps) {
|
||||
const noteId = bigInt(index[1]);
|
||||
useEffect(() => {
|
||||
airlock.poke(markEachAsRead(toHarkPlace(association.resource), `/${index[1]}`));
|
||||
// Unread may be malformed, dismiss anyway
|
||||
// TODO: remove when %read-graph is implemented
|
||||
airlock.poke(markEachAsRead(toHarkPlace(association.resource), `/1`));
|
||||
}, [association, props.note]);
|
||||
|
||||
const adminLinks: JSX.Element[] = [];
|
||||
|
@ -486,7 +486,7 @@
|
||||
update-core
|
||||
?- mode.kind
|
||||
%count (hark %unread-count place %.y 1)
|
||||
%each (hark %unread-each place /(rsh 4 (scot %ui (rear index.post))))
|
||||
%each (hark %unread-each place /(rsh 4 (scot %ui (rear self-idx))))
|
||||
%none update-core
|
||||
==
|
||||
==
|
||||
@ -497,7 +497,7 @@
|
||||
update-core
|
||||
?- mode.kind
|
||||
%count (hark %unread-count place %.n 1)
|
||||
%each (hark %read-each place /(rsh 4 (scot %ui (rear index.post))))
|
||||
%each (hark %read-each place /(rsh 4 (scot %ui (rear self-idx))))
|
||||
%none update-core
|
||||
==
|
||||
==
|
||||
|
Loading…
Reference in New Issue
Block a user