Attempt to fix posts with invalid dates
This commit is contained in:
parent
649de8ca0f
commit
5c925283d7
1 changed files with 10 additions and 8 deletions
|
@ -2331,13 +2331,15 @@ function Status({
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
<time
|
{!!createdAt && (
|
||||||
class="created"
|
<time
|
||||||
datetime={createdAtDate.toISOString()}
|
class="created"
|
||||||
title={createdAtDate.toLocaleString()}
|
datetime={createdAtDate.toISOString()}
|
||||||
>
|
title={createdAtDate.toLocaleString()}
|
||||||
{createdDateText}
|
>
|
||||||
</time>
|
{createdDateText}
|
||||||
|
</time>
|
||||||
|
)}
|
||||||
</a>
|
</a>
|
||||||
{editedAt && (
|
{editedAt && (
|
||||||
<>
|
<>
|
||||||
|
@ -3221,7 +3223,7 @@ function generateHTMLCode(post, instance, level = 0) {
|
||||||
— ${emojifyText(
|
— ${emojifyText(
|
||||||
displayName,
|
displayName,
|
||||||
accountEmojis,
|
accountEmojis,
|
||||||
)} (@${acct}) <a href="${url}"><time datetime="${createdAtDate.toISOString()}">${createdAtDate.toLocaleString()}</time></a>
|
)} (@${acct}) ${!!createdAt ? `<a href="${url}"><time datetime="${createdAtDate.toISOString()}">${createdAtDate.toLocaleString()}</time></a>` : ''}
|
||||||
</footer>
|
</footer>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue