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

Function nativeContent

packages/webapp/lib/postMarkdown.ts:206–207  ·  view source on GitHub ↗
(post: PostMarkdownPost)

Source from the content-addressed store, hash-verified

204
205/** The post's own body, when daily.dev hosts it. Empty for external articles. */
206const nativeContent = (post: PostMarkdownPost): string =>
207 NATIVE_CONTENT_TYPES.includes(post.type) ? (post.content?.trim() ?? '') : '';
208
209const buildFrontmatter = (post: PostMarkdownPost): string[] => {
210 const lines = ['---'];

Callers 1

buildBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected