From 3e515e234ec0eae10407349639959b40c38f35db Mon Sep 17 00:00:00 2001 From: Life Date: Sun, 29 Mar 2026 16:45:14 +0200 Subject: [PATCH] fix: replace dangerouslySetInnerHTML with safe rendering in UserContainerView - Remove dangerouslySetInnerHTML for creation date and last login fields which caused corrupted display - Use separate LocalizeText keys with safe React rendering instead - Add missing friends count display New external_texts keys required: extendedprofile.created.title, extendedprofile.last.login.title, extendedprofile.friends.count --- src/components/user-profile/UserContainerView.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/user-profile/UserContainerView.tsx b/src/components/user-profile/UserContainerView.tsx index ed357b0..dd2db05 100644 --- a/src/components/user-profile/UserContainerView.tsx +++ b/src/components/user-profile/UserContainerView.tsx @@ -41,8 +41,15 @@ export const UserContainerView: FC<{

{ userProfile.motto }

-

-

+

+ { LocalizeText('extendedprofile.created.title') } { userProfile.registration } +

+

+ { LocalizeText('extendedprofile.last.login.title') } { FriendlyTime.format(userProfile.secondsSinceLastVisit, '.ago', 2) } +

+

+ { LocalizeText('extendedprofile.friends.count') } { userProfile.friendsCount } +

{ LocalizeText('extendedprofile.achievementscore') } { userProfile.achievementPoints }