diff --git a/app/javascript/gabsocial/pages/profile_page.js b/app/javascript/gabsocial/pages/profile_page.js
index 2e9f915d..f8bbc92e 100644
--- a/app/javascript/gabsocial/pages/profile_page.js
+++ b/app/javascript/gabsocial/pages/profile_page.js
@@ -24,12 +24,14 @@ class ProfilePage extends ImmutablePureComponent {
children,
unavailable,
noSidebar,
+ isBlocked,
params: { username },
} = this.props
const nameHTML = !!account ? account.get('display_name_html') : ''
const name = !!account ? account.get('display_name_plain') : ''
-
+ const unavailableMessage = (unavailable && isBlocked) ? :
+
return (
-
- } />
+
}
@@ -72,6 +72,7 @@ const mapStateToProps = (state, { params: { username } }) => {
const getAccount = makeGetAccount()
return {
+ isBlocked,
unavailable,
account: accountId !== -1 ? getAccount(state, accountId) : null,
}
@@ -84,6 +85,7 @@ ProfilePage.propTypes = {
noSidebar: PropTypes.bool,
params: PropTypes.object.isRequired,
unavailable: PropTypes.bool.isRequired,
+ isBlocked: PropTypes.bool.isRequired,
}
export default connect(mapStateToProps)(ProfilePage)
\ No newline at end of file