From a28a8d059e21deb8698d256327e3705cf70ab2f7 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Tue, 2 Feb 2021 12:26:08 -0500
Subject: [PATCH] Ignore updated for user page. Fixes #139

---
 src/shared/components/moment-time.tsx | 3 ++-
 src/shared/components/user.tsx        | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/shared/components/moment-time.tsx b/src/shared/components/moment-time.tsx
index e833805..baa3c25 100644
--- a/src/shared/components/moment-time.tsx
+++ b/src/shared/components/moment-time.tsx
@@ -10,6 +10,7 @@ interface MomentTimeProps {
     updated?: string;
   };
   showAgo?: boolean;
+  ignoreUpdated?: boolean;
 }
 
 export class MomentTime extends Component<MomentTimeProps, any> {
@@ -22,7 +23,7 @@ export class MomentTime extends Component<MomentTimeProps, any> {
   }
 
   render() {
-    if (this.props.data.updated) {
+    if (!this.props.ignoreUpdated && this.props.data.updated) {
       return (
         <span
           data-tippy-content={`${capitalizeFirstLetter(
diff --git a/src/shared/components/user.tsx b/src/shared/components/user.tsx
index e5cd9fe..a431ff8 100644
--- a/src/shared/components/user.tsx
+++ b/src/shared/components/user.tsx
@@ -478,7 +478,8 @@ export class User extends Component<any, UserState> {
               </ul>
             </div>
             <div class="text-muted">
-              {i18n.t('joined')} <MomentTime data={uv.user} showAgo />
+              {i18n.t('joined')}{' '}
+              <MomentTime data={uv.user} showAgo ignoreUpdated />
             </div>
             <div className="d-flex align-items-center text-muted mb-2">
               <svg class="icon">
-- 
2.44.1