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

Function isPostOrSharedPostTwitter

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

Source from the content-addressed store, hash-verified

97): boolean => post?.type === PostType.Share || isSocialTwitterShareLike(post);
98
99export const isPostOrSharedPostTwitter = (
100 post: Pick<Post, 'type' | 'sharedPost'> | undefined | null,
101): boolean =>
102 isSocialTwitterPost(post) || isSocialTwitterPost(post?.sharedPost as Post);
103
104export const isPostUpdated = (
105 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