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

Function getReadArticleHref

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

Source from the content-addressed store, hash-verified

135 * otherwise the post's own permalink.
136 */
137export const getReadArticleHref = (
138 post: Pick<Post, 'type' | 'subType' | 'sharedPost' | 'permalink'>,
139): string | undefined =>
140 getPostReadTarget(post).target?.permalink ?? post.permalink;
141
142/**
143 * 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