fix: hide related posts in deleted item (#1119)

This commit is contained in:
Abhi Shandilya 2024-04-28 18:17:19 -04:00 committed by GitHub
parent 4a6e3ed735
commit bddc2b1508
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 === 0} />}
{!item.position && !item.isJob && !item.parentId && !item.deletedAt && !(item.bounty > 0) && <Related title={item.title} itemId={item.id} show={item.ncomments === 0} />}
{item.bounty > 0 && <PastBounties item={item} />}
</>}
</ItemComponent>