Skip to content

Commit

Permalink
Sync Glitch follow button with Mastodon (#2957)
Browse files Browse the repository at this point in the history
Fixes the follow button saying "Follow back" when it actually will
cancel the follow request (mastodon#31934). Intentionally omits
the "Mutual" state.
  • Loading branch information
wackbyte authored Jan 28, 2025
1 parent 6be5a8d commit b740b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/flavours/glitch/components/follow_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b740b17

Please sign in to comment.