fix(post): deleted or removed post could show reply form

This commit is contained in:
Tom (plebeius.eth)
2024-11-25 19:43:51 +01:00
parent 077b3bc9ef
commit 0043e2bdb6
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -167,7 +167,11 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P
<Link to={`/p/${subplebbitAddress}/c/${cid}`} className={styles.linkToPost} title={t('link_to_post')} onClick={(e) => !cid && e.preventDefault()}>
c/
</Link>
<span className={styles.replyToPost} title={t('reply_to_post')} onMouseDown={() => openReplyModal && openReplyModal(cid, postCid, subplebbitAddress)}>
<span
className={styles.replyToPost}
title={t('reply_to_post')}
onMouseDown={() => openReplyModal && !(deleted || removed) && openReplyModal(cid, postCid, subplebbitAddress)}
>
{shortCid.slice(0, -4)}
</span>
</span>