From: Takeshi Umeda Date: Fri, 16 Apr 2021 08:06:42 +0000 (+0900) Subject: Fix not to show follow button in global suggestion (#16045) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=baed52c2a7d8f91bae3c69150005fc528387785c;p=mastodon.git Fix not to show follow button in global suggestion (#16045) * Fix not to show follow button in global suggestion * Fix style --- diff --git a/app/javascript/mastodon/components/account.js b/app/javascript/mastodon/components/account.js index 0e40ee1d6..a85d683a7 100644 --- a/app/javascript/mastodon/components/account.js +++ b/app/javascript/mastodon/components/account.js @@ -78,8 +78,10 @@ class Account extends ImmutablePureComponent { let buttons; - if (onActionClick && actionIcon) { - buttons = ; + if (actionIcon) { + if (onActionClick) { + buttons = ; + } } else if (account.get('id') !== me && account.get('relationship', null) !== null) { const following = account.getIn(['relationship', 'following']); const requested = account.getIn(['relationship', 'requested']); diff --git a/app/javascript/mastodon/features/compose/components/search_results.js b/app/javascript/mastodon/features/compose/components/search_results.js index c4e160b8a..a8b31b677 100644 --- a/app/javascript/mastodon/features/compose/components/search_results.js +++ b/app/javascript/mastodon/features/compose/components/search_results.js @@ -55,9 +55,9 @@ class SearchResults extends ImmutablePureComponent { ))}