Skip to content

Commit

Permalink
only open related posts when there aren't comments
Browse files Browse the repository at this point in the history
  • Loading branch information
huumn committed Jan 20, 2024
1 parent 70aa7dd commit dc8d35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/item-full.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit dc8d35f

Please sign in to comment.