-
{comment.display_name || comment.username}
+ {comment.username ? (
+
+ {comment.display_name || comment.username}
+
+ ) : (
+
{comment.display_name || '?'}
+ )}
{new Date(comment.created_at).toLocaleString()}
{comment.updated_at !== comment.created_at && (
{t('comments.edited')}
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index 10bd6da..5672d9c 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -533,7 +533,8 @@
"title": "Account Info",
"username": "Username",
"role": "Role",
- "created": "Created"
+ "created": "Created",
+ "viewPublic": "View public profile"
},
"edit": {
"title": "Edit Profile",
diff --git a/frontend/src/locales/ja.json b/frontend/src/locales/ja.json
index 8546ffb..6dcec2e 100644
--- a/frontend/src/locales/ja.json
+++ b/frontend/src/locales/ja.json
@@ -533,7 +533,8 @@
"title": "アカウント情報",
"username": "ユーザー名",
"role": "ロール",
- "created": "作成日"
+ "created": "作成日",
+ "viewPublic": "公開プロフィールを見る"
},
"edit": {
"title": "プロフィールを編集",
diff --git a/frontend/src/locales/ko.json b/frontend/src/locales/ko.json
index 364e03b..ae5904f 100644
--- a/frontend/src/locales/ko.json
+++ b/frontend/src/locales/ko.json
@@ -533,7 +533,8 @@
"title": "계정 정보",
"username": "사용자명",
"role": "역할",
- "created": "생성일"
+ "created": "생성일",
+ "viewPublic": "공개 프로필 보기"
},
"edit": {
"title": "프로필 편집",
diff --git a/frontend/src/locales/zh-TW.json b/frontend/src/locales/zh-TW.json
index 6c5fdfe..9551e91 100644
--- a/frontend/src/locales/zh-TW.json
+++ b/frontend/src/locales/zh-TW.json
@@ -533,7 +533,8 @@
"title": "帳號資訊",
"username": "使用者名稱",
"role": "角色",
- "created": "建立時間"
+ "created": "建立時間",
+ "viewPublic": "檢視公開頁面"
},
"edit": {
"title": "編輯個人檔案",
diff --git a/frontend/src/pages/Activity.jsx b/frontend/src/pages/Activity.jsx
index 74c2658..5e70e2b 100644
--- a/frontend/src/pages/Activity.jsx
+++ b/frontend/src/pages/Activity.jsx
@@ -89,7 +89,16 @@ export default function Activity() {
{text}
-
{a.display_name || a.username || t('activity.system')}
+ {a.username ? (
+
+ {a.display_name || a.username}
+
+ ) : (
+
{t('activity.system')}
+ )}
{' '}{text}{' '}
{meta.slug && a.action !== 'deleted' ? (
diff --git a/frontend/src/pages/Admin.jsx b/frontend/src/pages/Admin.jsx
index d561b25..43d7d5d 100644
--- a/frontend/src/pages/Admin.jsx
+++ b/frontend/src/pages/Admin.jsx
@@ -462,7 +462,14 @@ function UsersSection() {
{users.map((u) => (
- | {u.username} |
+
+
+ {u.username}
+
+ |
|
- {item.author_name || '—'}
+ {item.author_name ? (
+ item.author_username ? (
+
+ {item.author_name}
+
+ ) : (
+ item.author_name
+ )
+ ) : '—'}
|
{item.deleted_at ? new Date(item.deleted_at).toLocaleString() : '—'}
|