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

Function isUserGeneratedPost

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

Source from the content-addressed store, hash-verified

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

Callers 3

getSEOJsonLdFunction · 0.85
getCommentsJsonLdFunction · 0.85
PostSEOSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected