MCPcopy Create free account
hub / github.com/dailydotdev/apps / withPostRead

Function withPostRead

packages/shared/src/graphql/posts.ts:1770–1775  ·  view source on GitHub ↗
(
  post?: Pick<Post, 'bookmark'>,
)

Source from the content-addressed store, hash-verified

1768 * it has to flip with the view or the card would stay undimmed until refetch.
1769 */
1770export const withPostRead = (
1771 post?: Pick<Post, 'bookmark'>,
1772): Pick<Post, 'read' | 'bookmark'> => ({
1773 read: true,
1774 ...(post?.bookmark && { bookmark: { ...post.bookmark, read: true } }),
1775});

Callers 1

usePostModalNavigationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected