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

This commit is contained in:
Gordon Pedersen 2024-05-23 17:19:07 +10:00
parent 7bbd151a98
commit 8cbce7744d
2 changed files with 3 additions and 2 deletions

View file

@ -46,7 +46,7 @@
<a class="name" href="https://monrepos.casa/profile/death.au">Gordon Pedersen</a>
</aside>
<aside class="post-info">
<a class="source" href="https://monrepos.casa/display/0e03068e-1866-3f18-738d-497554542391">
<a class="permalink" href="https://monrepos.casa/display/0e03068e-1866-3f18-738d-497554542391">
<i class="fa-solid fa-clock"></i>
<time class="dt-published" datetime="2024-05-11T07:04:19.000Z">11 days ago</time>
</a>

View file

@ -128,12 +128,13 @@ function renderReplies(status, replies, replyContainer, template) {
article.querySelector('.avatar').src = reply.account.avatar
article.querySelector('a.name').href = reply.account.url
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').innerText = luxon.DateTime.fromISO(reply.created_at).toRelative()
article.querySelector('.reply-content').innerHTML = reply.content
article.querySelector('a.source').href = reply.url
article.querySelector('.application').innerText = reply.application.name
article.querySelector('.replies-count').innerText = reply.replies_count
article.querySelector('.favourites-count').innerText = reply.favourites_count