mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(reply): don't show backlink for deleted or removed reply
This commit is contained in:
@@ -209,7 +209,10 @@ const PostInfo = ({ openReplyModal, post, postReplyCount = 0, roles, isHidden }:
|
|||||||
parentCid &&
|
parentCid &&
|
||||||
replies &&
|
replies &&
|
||||||
replies.map(
|
replies.map(
|
||||||
(reply: Comment, index: number) => reply?.parentCid === cid && reply?.cid && <ReplyQuotePreview key={index} isBacklinkReply={true} backlinkReply={reply} />,
|
(reply: Comment, index: number) =>
|
||||||
|
reply?.parentCid === cid &&
|
||||||
|
reply?.cid &&
|
||||||
|
!(reply?.deleted || reply?.removed) && <ReplyQuotePreview key={index} isBacklinkReply={true} backlinkReply={reply} />,
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -233,7 +233,10 @@ const ReplyBacklinks = ({ post }: PostProps) => {
|
|||||||
replies.length > 0 && (
|
replies.length > 0 && (
|
||||||
<div className={styles.mobileReplyBacklinks}>
|
<div className={styles.mobileReplyBacklinks}>
|
||||||
{replies.map(
|
{replies.map(
|
||||||
(reply: Comment, index: number) => reply?.parentCid === cid && reply?.cid && <ReplyQuotePreview key={index} isBacklinkReply={true} backlinkReply={reply} />,
|
(reply: Comment, index: number) =>
|
||||||
|
reply?.parentCid === cid &&
|
||||||
|
reply?.cid &&
|
||||||
|
!(reply?.deleted || reply?.removed) && <ReplyQuotePreview key={index} isBacklinkReply={true} backlinkReply={reply} />,
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user