From: Dessalines <tyhou13@gmx.com> Date: Tue, 2 Feb 2021 17:26:08 +0000 (-0500) Subject: Ignore updated for user page. Fixes #139 X-Git-Url: http://these/git/%7BpictrsAvatarThumbnail%28user.avatar%29%7D?a=commitdiff_plain;h=a28a8d059e21deb8698d256327e3705cf70ab2f7;p=lemmy-ui.git Ignore updated for user page. Fixes #139 --- 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">