fix(post): hidden post showed its content

This commit is contained in:
Tom (plebeius.eth)
2024-11-04 18:42:42 +01:00
parent 57684438a5
commit a2dd3efe08
+1 -1
View File
@@ -464,7 +464,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies, showReplies
{link && !isHidden && !(deleted || removed) && isValidURL(link) && <PostMedia post={post} />}
<PostInfo isHidden={hidden} openReplyModal={openReplyModal} post={post} postReplyCount={replyCount} roles={roles} />
{!isHidden && !content && !(deleted || removed) && <div className={styles.spacer} />}
{!(isHidden && parentCid) && <PostMessage post={post} />}
{!isHidden && <PostMessage post={post} />}
</div>
{!isHidden && !isDescription && !isRules && !isInPendingPostView && (replyCount > 5 || (pinned && repliesCount > 0)) && !isInPostPageView && (
<span className={styles.summary}>