Show join date if there's nothing to show

This commit is contained in:
Lim Chee Aun 2024-01-30 22:46:18 +08:00
parent ff35c458c3
commit 46d7cba1ea

View file

@ -61,6 +61,7 @@ function AccountBlock({
note,
group,
followersCount,
createdAt,
} = account;
let [_, acct1, acct2] = acct.match(/([^@]+)(@.+)/i) || [, acct];
if (accountInstance) {
@ -188,6 +189,21 @@ function AccountBlock({
/>
</span>
)}
{!bot &&
!group &&
!hasRelationship &&
!followersCount &&
!verifiedField &&
!!createdAt && (
<span class="created-at">
Joined{' '}
<time datetime={createdAt}>
{niceDateTime(createdAt, {
hideTime: true,
})}
</time>
</span>
)}
</div>
)}
</span>