mirror of
https://github.com/funamitech/mastodon
synced 2024-12-12 13:48:35 +09:00
[Glitch] Fix not to show follow button in global suggestion
Port baed52c2a7
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
72eac238ba
commit
b1d4f21db0
@ -87,8 +87,10 @@ class Account extends ImmutablePureComponent {
|
|||||||
|
|
||||||
let buttons;
|
let buttons;
|
||||||
|
|
||||||
if (onActionClick && actionIcon) {
|
if (onActionClick) {
|
||||||
|
if (actionIcon) {
|
||||||
buttons = <IconButton icon={actionIcon} title={actionTitle} onClick={this.handleAction} />;
|
buttons = <IconButton icon={actionIcon} title={actionTitle} onClick={this.handleAction} />;
|
||||||
|
}
|
||||||
} else if (account.get('id') !== me && !small && account.get('relationship', null) !== null) {
|
} else if (account.get('id') !== me && !small && account.get('relationship', null) !== null) {
|
||||||
const following = account.getIn(['relationship', 'following']);
|
const following = account.getIn(['relationship', 'following']);
|
||||||
const requested = account.getIn(['relationship', 'requested']);
|
const requested = account.getIn(['relationship', 'requested']);
|
||||||
|
@ -55,9 +55,9 @@ class SearchResults extends ImmutablePureComponent {
|
|||||||
<AccountContainer
|
<AccountContainer
|
||||||
key={suggestion.get('account')}
|
key={suggestion.get('account')}
|
||||||
id={suggestion.get('account')}
|
id={suggestion.get('account')}
|
||||||
actionIcon={suggestion.get('source') === 'past_interaction' && 'times'}
|
actionIcon={suggestion.get('source') === 'past_interaction' ? 'times' : null}
|
||||||
actionTitle={suggestion.get('source') === 'past_interaction' && intl.formatMessage(messages.dismissSuggestion)}
|
actionTitle={suggestion.get('source') === 'past_interaction' ? intl.formatMessage(messages.dismissSuggestion) : null}
|
||||||
onActionClick={suggestion.get('source') === 'past_interaction' && dismissSuggestion}
|
onActionClick={dismissSuggestion}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user