Use acct instead of username

This commit is contained in:
Lim Chee Aun 2024-03-03 12:12:40 +08:00
parent 6bb6b9c350
commit b79ce92aef

View file

@ -2333,6 +2333,7 @@ function generateHTMLCode(post, instance, level = 0) {
account: { account: {
url: accountURL, url: accountURL,
displayName, displayName,
acct,
username, username,
emojis: accountEmojis, emojis: accountEmojis,
bot, bot,
@ -2477,7 +2478,7 @@ function generateHTMLCode(post, instance, level = 0) {
${emojifyText( ${emojifyText(
displayName, displayName,
accountEmojis, accountEmojis,
)} (@${username}) <a href="${url}"><time datetime="${createdAtDate.toISOString()}">${createdAtDate.toLocaleString()}</time></a> )} (@${acct}) <a href="${url}"><time datetime="${createdAtDate.toISOString()}">${createdAtDate.toLocaleString()}</time></a>
</footer> </footer>
</blockquote> </blockquote>
`; `;