fix(post): don't show link if comment is removed or deleted

This commit is contained in:
Tom (plebeius.eth)
2024-08-29 12:47:22 +02:00
parent 4e390a9fc5
commit 068c30a322
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -162,7 +162,9 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P
)}
</span>
</div>
{(hasThumbnail || link) && <CommentMedia commentMediaInfo={commentMediaInfo} post={post} showThumbnail={showThumbnail} setShowThumbnail={setShowThumbnail} />}
{(hasThumbnail || link) && !(deleted || removed) && (
<CommentMedia commentMediaInfo={commentMediaInfo} post={post} showThumbnail={showThumbnail} setShowThumbnail={setShowThumbnail} />
)}
</>
);
};