RegularToot: fix time display problem

This commit is contained in:
thislight 2024-09-14 12:28:22 +08:00
parent 9b4892b36c
commit 3beb8a880e
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

View file

@ -187,7 +187,7 @@ function TootAuthorGroup(props: { status: mastodon.v1.Status; now: Date }) {
}}
/>
<time datetime={toot().createdAt}>
{formatRelative(props.now, toot().createdAt)}
{formatRelative(toot().createdAt, props.now)}
</time>
<span>
@{toot().account.username}@{new URL(toot().account.url).hostname}