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

Function isPostUpdated

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected