mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-09 00:12:13 -05:00
Sync Glitch follow button with Mastodon (#2957)
Fixes the follow button saying "Follow back" when it actually will cancel the follow request (mastodon/mastodon#31934). Intentionally omits the "Mutual" state.
This commit is contained in:
parent
6be5a8da68
commit
b740b17de5
@ -78,10 +78,10 @@ export const FollowButton: React.FC<{
|
||||
label = intl.formatMessage(messages.edit_profile);
|
||||
} else if (!relationship) {
|
||||
label = <LoadingIndicator />;
|
||||
} else if (!relationship.following && relationship.followed_by) {
|
||||
label = intl.formatMessage(messages.followBack);
|
||||
} else if (relationship.following || relationship.requested) {
|
||||
label = intl.formatMessage(messages.unfollow);
|
||||
} else if (relationship.followed_by) {
|
||||
label = intl.formatMessage(messages.followBack);
|
||||
} else {
|
||||
label = intl.formatMessage(messages.follow);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user