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

Function getReadArticleHref

packages/shared/src/graphql/posts.ts:136–139  ·  view source on GitHub ↗
(
  post: Pick<Post, 'type' | 'subType' | 'sharedPost' | 'permalink'>,
)

Source from the content-addressed store, hash-verified

134 * otherwise the post's own permalink.
135 */
136export const getReadArticleHref = (
137 post: Pick<Post, 'type' | 'subType' | 'sharedPost' | 'permalink'>,
138): string | undefined =>
139 getPostReadTarget(post).target?.permalink ?? post.permalink;
140
141/**
142 * A share without commentary has nothing of its own to reshare, so resharing

Callers 5

FocusColumnFunction · 0.90
ReadingDrawerFunction · 0.90
PostHeaderActionsFunction · 0.90
PostHybridColumnFunction · 0.90
ReaderPostLayoutFunction · 0.90

Calls 1

getPostReadTargetFunction · 0.85

Tested by

no test coverage detected