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

Function withPostRead

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

Source from the content-addressed store, hash-verified

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

Callers 1

usePostModalNavigationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected