diff --git a/app/soapbox/features/account_timeline/index.js b/app/soapbox/features/account_timeline/index.js index 7f0e12114..94762c918 100644 --- a/app/soapbox/features/account_timeline/index.js +++ b/app/soapbox/features/account_timeline/index.js @@ -39,7 +39,7 @@ const mapStateToProps = (state, { params: { username }, withReplies = false }) = const path = withReplies ? `${accountId}:with_replies` : accountId; const isBlocked = state.getIn(['relationships', accountId, 'blocked_by'], false); - const unavailable = (me === accountId) ? false : true; + const unavailable = (me === accountId) ? false : isBlocked; return { accountId, @@ -136,21 +136,12 @@ class AccountTimeline extends ImmutablePureComponent { ); } - if (isBlocked) { - return ( - -
- -
-
- ); - } - if (unavailable) { return (
- + {isBlocked ? + : }
);