Merge pull request #76 from ragestudio/fixed-post-timestampts

use timestamp data
This commit is contained in:
srgooglo 2022-11-02 18:59:57 +01:00 committed by GitHub
commit 22143e33ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ export default (props) => {
}
const updateTimeAgo = () => {
let createdAt = props.postData.created_at ?? ""
let createdAt = props.postData.timestamp ?? props.postData.created_at ?? ""
const timeAgo = DateTime.fromISO(createdAt).toRelative()