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

Function isShareLikePost

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

Source from the content-addressed store, hash-verified

94};
95
96export const isShareLikePost = (
97 post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null,
98): boolean => post?.type === PostType.Share || isSocialTwitterShareLike(post);
99
100export const isPostOrSharedPostTwitter = (
101 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