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

Function getPostTitle

packages/shared/src/graphql/posts.ts:135–137  ·  view source on GitHub ↗
(
  post: Pick<Post, 'title' | 'sharedPost'> | undefined | null,
)

Source from the content-addressed store, hash-verified

133 getPostReadTarget(post).target?.permalink ?? post.permalink;
134
135export const getPostTitle = (
136 post: Pick<Post, 'title' | 'sharedPost'> | undefined | null,
137): string | undefined => post?.title || post?.sharedPost?.title || undefined;
138
139export const getReadPostButtonText = (post: Post): string => {
140 if (isVideoPost(post)) {

Callers 10

AgentProviderFunction · 0.90
postAttachmentFunction · 0.90
messageAsMarkdownFunction · 0.90
messageAsHtmlFunction · 0.90
AgentSharePostButtonFunction · 0.90
AgentCopyPostLinkButtonFunction · 0.90
tabLabelFunction · 0.90
AgentDebugPanelFunction · 0.90
PickRowFunction · 0.90
AgentPostCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected