(post: PostMarkdownPost)
| 282 | }; |
| 283 | |
| 284 | const buildBody = (post: PostMarkdownPost): string[] => { |
| 285 | const content = nativeContent(post); |
| 286 | |
| 287 | if (content) { |
| 288 | return ['## Content', '', content]; |
| 289 | } |
| 290 | |
| 291 | const url = sourceUrl(post); |
| 292 | |
| 293 | return [ |
| 294 | '## Full article', |
| 295 | '', |
| 296 | `daily.dev links to this article rather than hosting it. Read it at the original source: <${url}>`, |
| 297 | ]; |
| 298 | }; |
| 299 | |
| 300 | const buildSummary = (post: PostMarkdownPost): string[] => { |
| 301 | const summary = post.summary || post.sharedPost?.summary || post.description; |
no test coverage detected