]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #6128 - Display unfollow button even if account moved (#6258)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 15 Jan 2018 17:42:15 +0000 (18:42 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Jan 2018 17:42:15 +0000 (18:42 +0100)
app/javascript/mastodon/components/account.js
app/javascript/mastodon/features/account/components/header.js

index 81459731c7574db896e49b41a22f8ad9b50e332d..a3642e61ddba03ddfa9690c409547fd20880c9fc 100644 (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} />;
       }
     }
index b2399ae9b2f3db8a479da94c6a6137fc80241952..0225e73080d5518bbd9048b3465a62fb2160045f 100644 (file)
@@ -103,7 +103,7 @@ export default class Header extends ImmutablePureComponent {
       }
     }
 
-    if (account.get('moved')) {
+    if (account.get('moved') && !account.getIn(['relationship', 'following'])) {
       actionBtn = '';
     }