This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git

commit f7099684633259a96156cacbed8c5ee2a5a810a3
Author: shuai <[email protected]>
AuthorDate: Tue Sep 9 10:11:41 2025 +0800

    fix: fixed the incorrect link of the user who was replied in the comment
---
 ui/src/components/Comment/index.tsx | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/ui/src/components/Comment/index.tsx 
b/ui/src/components/Comment/index.tsx
index 2a052e28..ec42c562 100644
--- a/ui/src/components/Comment/index.tsx
+++ b/ui/src/components/Comment/index.tsx
@@ -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"

Reply via email to