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:
wackbyte 2025-01-28 20:22:19 +00:00 committed by GitHub
parent 6be5a8da68
commit b740b17de5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}