1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-28 23:44:19 +00:00

🐛 Display post_time under tweets

This commit is contained in:
Steffo 2021-05-26 22:54:15 +02:00
parent f7d21c1e9f
commit f5dcf4e1ec
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -31,7 +31,7 @@ export default function SummaryTweet({ tweet, ...props }) {
<SummaryLeft <SummaryLeft
icon={icon} icon={icon}
title={`@${tweet["poster"]}`} title={`@${tweet["poster"]}`}
subtitle={new Date(tweet["insert_time"]).toLocaleString()} subtitle={tweet["post_time"] ? new Date(tweet["post_time"]).toLocaleString() : null}
onClick={() => window.open(`https://twitter.com/${tweet["poster"]}/status/${tweet["snowflake"]}`)} onClick={() => window.open(`https://twitter.com/${tweet["poster"]}/status/${tweet["snowflake"]}`)}
/> />
<SummaryText> <SummaryText>