fix(post): don't show c/quote in content if reply is removed or deleted

This commit is contained in:
Tom (plebeius.eth)
2024-06-21 21:58:10 +02:00
parent 1900d1cdf2
commit 533fc2ffa3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ const PostMessage = ({ post }: PostProps) => {
return (
<blockquote className={styles.postMessage}>
{isReply && isReplyingToReply && <ReplyQuotePreview isQuotelinkReply={true} quotelinkReply={quotelinkReply} />}
{isReply && !(removed || deleted) && isReplyingToReply && <ReplyQuotePreview isQuotelinkReply={true} quotelinkReply={quotelinkReply} />}
{removed ? (
<span className={styles.removedContent}>({t('this_post_was_removed')})</span>
) : deleted ? (
+1 -1
View File
@@ -142,7 +142,7 @@ const PostMessageMobile = ({ post }: PostProps) => {
return (
content && (
<blockquote className={`${styles.postMessage} ${!isReply && styles.clampLines}`}>
{isReply && isReplyingToReply && <ReplyQuotePreview isQuotelinkReply={true} quotelinkReply={quotelinkReply} />}
{isReply && !(removed || deleted) && isReplyingToReply && <ReplyQuotePreview isQuotelinkReply={true} quotelinkReply={quotelinkReply} />}
{removed ? (
<span className={styles.removedContent}>({t('this_post_was_removed')})</span>
) : deleted ? (