Thread viewer for Bluesky

show "–" if no. of (re)posts is 0

Changed files
+2 -2
+2 -2
skythread.js
··· 562 562 `<a href="https://bsky.app/profile/${user.handle}" target="_blank">${user.handle}</a>` 563 563 }), 564 564 $tag('td', { text: ((user.own + user.reposts) / days).toFixed(1) }), 565 - $tag('td', { text: (user.own / days).toFixed(1) }), 566 - $tag('td', { text: (user.reposts / days).toFixed(1) }), 565 + $tag('td', { text: user.own > 0 ? (user.own / days).toFixed(1) : '–' }), 566 + $tag('td', { text: user.reposts > 0 ? (user.reposts / days).toFixed(1) : '–' }), 567 567 $tag('td.percent', { text: ((user.own + user.reposts) * 100 / total).toFixed(1) + '%' }) 568 568 ); 569 569