]> Untitled Git - lemmy-ui.git/commitdiff
Ignore updated for user page. Fixes #139
authorDessalines <tyhou13@gmx.com>
Tue, 2 Feb 2021 17:26:08 +0000 (12:26 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 2 Feb 2021 17:26:08 +0000 (12:26 -0500)
src/shared/components/moment-time.tsx
src/shared/components/user.tsx

index e8338054bcb8a774a91db93c8edb656276ace0ce..baa3c2525cd97817856b643688755a4560a5ece6 100644 (file)
@@ -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(
index e5cd9feb2aa14d0fb2873ac92f09cb3951814775..a431ff8fa3b72fbf068574199facba642fdb988e 100644 (file)
@@ -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">