diff --git a/app/soapbox/features/account/components/header.js b/app/soapbox/features/account/components/header.js index dbd57cb91..e023564f7 100644 --- a/app/soapbox/features/account/components/header.js +++ b/app/soapbox/features/account/components/header.js @@ -292,19 +292,16 @@ class Header extends ImmutablePureComponent { } - { - me && -
- - {account.get('id') !== me && account.getIn(['pleroma', 'accepts_chat_messages'], false) === true && - - } - -
- } +
+ + {me && account.get('id') !== me && account.getIn(['pleroma', 'accepts_chat_messages'], false) === true && + + } + {me && } +
diff --git a/app/soapbox/features/ui/components/action_button.js b/app/soapbox/features/ui/components/action_button.js index b0b114ee6..47dfb30b1 100644 --- a/app/soapbox/features/ui/components/action_button.js +++ b/app/soapbox/features/ui/components/action_button.js @@ -16,6 +16,7 @@ import { const messages = defineMessages({ unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }, follow: { id: 'account.follow', defaultMessage: 'Follow' }, + remote_follow: { id: 'account.remote_follow', defaultMessage: 'Remote follow' }, requested: { id: 'account.requested', defaultMessage: 'Awaiting approval. Click to cancel follow request' }, requested_small: { id: 'account.requested_small', defaultMessage: 'Awaiting approval' }, unblock: { id: 'account.unblock', defaultMessage: 'Unblock @{name}' }, @@ -81,24 +82,42 @@ class ActionButton extends ImmutablePureComponent { render() { const { account, intl, me, small } = this.props; - let actionBtn = null; + const empty = <>; - if (!account || !me) return actionBtn; + if (!me) { + // Remote follow + return (
+ + +