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

Function isUserGeneratedPost

packages/webapp/components/PostSEOSchema.tsx:27–28  ·  view source on GitHub ↗
(post: Post | null | undefined)

Source from the content-addressed store, hash-verified

25 * These should use DiscussionForumPosting schema per Google's guidelines
26 */
27export const isUserGeneratedPost = (post: Post | null | undefined): boolean =>
28 post?.type ? USER_GENERATED_POST_TYPES.includes(post.type) : false;
29
30export const getSeoDescription = (post: Post): string => {
31 if (post?.summary) {

Callers 3

getSEOJsonLdFunction · 0.85
getCommentsJsonLdFunction · 0.85
PostSEOSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected