Skip to content
Snippets Groups Projects
Unverified Commit 3987bd18 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix #6128 - Display unfollow button even if account moved (#6258)

parent 74c1c9ec
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ export default class Account extends ImmutablePureComponent {
{hidingNotificationsButton}
</Fragment>
);
} else if (!account.get('moved')) {
} else if (!account.get('moved') || following) {
buttons = <IconButton icon={following ? 'user-times' : 'user-plus'} title={intl.formatMessage(following ? messages.unfollow : messages.follow)} onClick={this.handleFollow} active={following} />;
}
}
......
......@@ -103,7 +103,7 @@ export default class Header extends ImmutablePureComponent {
}
}
if (account.get('moved')) {
if (account.get('moved') && !account.getIn(['relationship', 'following'])) {
actionBtn = '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment