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

Function isShareLikePost

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

Source from the content-addressed store, hash-verified

88};
89
90export const isShareLikePost = (
91 post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null,
92): boolean => post?.type === PostType.Share || isSocialTwitterShareLike(post);
93
94export const isPostOrSharedPostTwitter = (
95 post: Pick<Post, 'type' | 'sharedPost'> | undefined | null,

Callers 3

posts.spec.tsFile · 0.90
usePostContentFunction · 0.90
useLogImpressionFunction · 0.90

Calls 1

isSocialTwitterShareLikeFunction · 0.85

Tested by

no test coverage detected