fix: fixed the incorrect link of the user who was replied in the comment

This commit is contained in:
shuai
2025-09-09 10:11:41 +08:00
parent 7f9af84093
commit f709968463
+12 -5
View File
@@ -417,11 +417,18 @@ const Comment: FC<IProps> = ({ objectId, mode, commentId, children }) => {
/>
) : (
<div className="d-block">
{item.reply_user_display_name && (
<Link to="." className="small me-1 text-nowrap">
@{item.reply_user_display_name}
</Link>
)}
{item.reply_user_display_name &&
(item.reply_user_status !== 'deleted' ? (
<Link
to={`/users/${item.reply_username}`}
className="small me-1 text-nowrap">
@{item.reply_user_display_name}
</Link>
) : (
<span className="small me-1 text-nowrap">
@{item.reply_user_display_name}
</span>
))}
<div
className="fmt small text-break text-wrap"