Skip to content

Commit

Permalink
Add use created at on PostFeedItem.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesleesaunders committed Jan 16, 2025
1 parent c68a0a1 commit 437ab2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/view/com/posts/PostFeedItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ let FeedItemInner = ({
AppBskyFeedDefs.isReasonRepost(reason) &&
reason.by.did === currentAccount?.did

const createdAt = AppBskyFeedPost.isRecord(post.record)
? post.record.createdAt
: post.indexedAt

/**
* If `post[0]` in this slice is the actual root post (not an orphan thread),
* then we may have a threadgate record to reference
Expand Down Expand Up @@ -395,7 +399,7 @@ let FeedItemInner = ({
<PostMeta
author={post.author}
moderation={moderation}
timestamp={post.indexedAt}
timestamp={createdAt}
postHref={href}
onOpenAuthor={onOpenAuthor}
/>
Expand Down

0 comments on commit 437ab2b

Please sign in to comment.