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

Function isPostOrSharedPostTwitter

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

Source from the content-addressed store, hash-verified

92): boolean => post?.type === PostType.Share || isSocialTwitterShareLike(post);
93
94export const isPostOrSharedPostTwitter = (
95 post: Pick<Post, 'type' | 'sharedPost'> | undefined | null,
96): boolean =>
97 isSocialTwitterPost(post) || isSocialTwitterPost(post?.sharedPost as Post);
98
99export const isPostUpdated = (
100 post: Pick<Post, 'createdAt' | 'updatedAt'>,

Callers 3

getReadPostButtonIconFunction · 0.90
PostHeaderActionsFunction · 0.90
getReadPostButtonTextFunction · 0.85

Calls 1

isSocialTwitterPostFunction · 0.85

Tested by

no test coverage detected