Browse Source

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

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
3987bd18a4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/javascript/mastodon/components/account.js
  2. +1
    -1
      app/javascript/mastodon/features/account/components/header.js

+ 1
- 1
app/javascript/mastodon/components/account.js View File

@ -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} />;
}
}

+ 1
- 1
app/javascript/mastodon/features/account/components/header.js View File

@ -103,7 +103,7 @@ export default class Header extends ImmutablePureComponent {
}
}
if (account.get('moved')) {
if (account.get('moved') && !account.getIn(['relationship', 'following'])) {
actionBtn = '';
}

Loading…
Cancel
Save