about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/account.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-01-15 18:42:15 +0100
committerGitHub <noreply@github.com>2018-01-15 18:42:15 +0100
commit3987bd18a4bfaee49ea9a3439fc51610aeca6c2c (patch)
tree617f6d0958c04e07e95f90d4ab856e2bc0effe7f /app/javascript/mastodon/components/account.js
parent74c1c9ec01addc7474d74712f76fb6d6d5eecdf7 (diff)
Fix #6128 - Display unfollow button even if account moved (#6258)
Diffstat (limited to 'app/javascript/mastodon/components/account.js')
-rw-r--r--app/javascript/mastodon/components/account.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/account.js b/app/javascript/mastodon/components/account.js
index 81459731c..a3642e61d 100644
--- a/app/javascript/mastodon/components/account.js
+++ b/app/javascript/mastodon/components/account.js
@@ -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} />;
       }
     }