diff --git a/pkg/interface/src/views/apps/publish/components/Note.tsx b/pkg/interface/src/views/apps/publish/components/Note.tsx index f6d21066b7..af074dde5a 100644 --- a/pkg/interface/src/views/apps/publish/components/Note.tsx +++ b/pkg/interface/src/views/apps/publish/components/Note.tsx @@ -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[] = []; diff --git a/pkg/landscape/app/hark-graph-hook.hoon b/pkg/landscape/app/hark-graph-hook.hoon index 5e7a628ddf..210f88dba5 100644 --- a/pkg/landscape/app/hark-graph-hook.hoon +++ b/pkg/landscape/app/hark-graph-hook.hoon @@ -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 == ==