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

Function isShareLikePost

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

Source from the content-addressed store, hash-verified

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