only open related posts when there aren't comments

This commit is contained in:
keyan 2024-01-20 15:17:34 -06:00
parent 70aa7dd1ad
commit dc8d35fdcf
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ function TopLevelItem ({ item, noReply, ...props }) {
{!noReply &&
<>
<Reply item={item} replyOpen placeholder={item.ncomments > 3 ? 'fractions of a penny for your thoughts?' : 'early comments get more zaps'} onCancelQuote={cancelQuote} onQuoteReply={quoteReply} quote={quote} />
{!item.position && !item.isJob && !item.parentId && !(item.bounty > 0) && <Related title={item.title} itemId={item.id} show={item.ncomments < 3} />}
{!item.position && !item.isJob && !item.parentId && !(item.bounty > 0) && <Related title={item.title} itemId={item.id} show={item.ncomments === 0} />}
{item.bounty > 0 && <PastBounties item={item} />}
</>}
</ItemComponent>