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

Function isPostUpdated

packages/shared/src/graphql/posts.ts:99–101  ·  view source on GitHub ↗
(
  post: Pick<Post, 'createdAt' | 'updatedAt'>,
)

Source from the content-addressed store, hash-verified

97 isSocialTwitterPost(post) || isSocialTwitterPost(post?.sharedPost as Post);
98
99export const isPostUpdated = (
100 post: Pick<Post, 'createdAt' | 'updatedAt'>,
101): boolean => !!post.updatedAt && post.updatedAt !== post.createdAt;
102
103/**
104 * For social:twitter quote posts, resolve to the top tweet (the post itself)

Calls

no outgoing calls

Tested by

no test coverage detected