another fix
All checks were successful
/ weblog.lol (push) Successful in 9s

This commit is contained in:
Gordon Pedersen 2024-05-23 17:19:07 +10:00
parent 7bbd151a98
commit f4a18a4043

View file

@ -128,12 +128,13 @@ function renderReplies(status, replies, replyContainer, template) {
article.querySelector('.avatar').src = reply.account.avatar article.querySelector('.avatar').src = reply.account.avatar
article.querySelector('a.name').href = reply.account.url article.querySelector('a.name').href = reply.account.url
article.querySelector('.name').innerText = reply.account.display_name article.querySelector('.name').innerText = reply.account.display_name
article.querySelector('a.source').href = reply.url article.querySelector('a.permalink').href = reply.url
article.querySelector('time.dt-published').datetime = reply.created_at article.querySelector('time.dt-published').datetime = reply.created_at
article.querySelector('time.dt-published').innerText = luxon.DateTime.fromISO(reply.created_at).toRelative() article.querySelector('time.dt-published').innerText = luxon.DateTime.fromISO(reply.created_at).toRelative()
article.querySelector('.reply-content').innerHTML = reply.content article.querySelector('.reply-content').innerHTML = reply.content
article.querySelector('a.source').href = reply.url
article.querySelector('.application').innerText = reply.application.name article.querySelector('.application').innerText = reply.application.name
article.querySelector('.replies-count').innerText = reply.replies_count article.querySelector('.replies-count').innerText = reply.replies_count
article.querySelector('.favourites-count').innerText = reply.favourites_count article.querySelector('.favourites-count').innerText = reply.favourites_count