From 3ef93e4f7f09ff4b2b80d6188c8c48f6d7ed7d77 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 17 Jan 2024 09:56:51 +0100 Subject: [PATCH] Revert "Change "Follow" to "Follow back" and "Mutual" when appropriate in web UI (#28452)" This reverts commit 5976d3702ff067fb0ed972fbc5f01a0f46b01bd7. --- .../features/account/components/header.jsx | 20 ++++--------------- app/javascript/mastodon/locales/en.json | 3 +-- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/app/javascript/mastodon/features/account/components/header.jsx b/app/javascript/mastodon/features/account/components/header.jsx index e5ae5eeb9f..2dbc8635c5 100644 --- a/app/javascript/mastodon/features/account/components/header.jsx +++ b/app/javascript/mastodon/features/account/components/header.jsx @@ -34,8 +34,6 @@ import FollowRequestNoteContainer from '../containers/follow_request_note_contai const messages = defineMessages({ unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }, follow: { id: 'account.follow', defaultMessage: 'Follow' }, - followBack: { id: 'account.follow_back', defaultMessage: 'Follow back' }, - mutual: { id: 'account.mutual', defaultMessage: 'Mutual' }, cancel_follow_request: { id: 'account.cancel_follow_request', defaultMessage: 'Withdraw follow request' }, requested: { id: 'account.requested', defaultMessage: 'Awaiting approval. Click to cancel follow request' }, unblock: { id: 'account.unblock', defaultMessage: 'Unblock @{name}' }, @@ -83,18 +81,6 @@ const titleFromAccount = account => { return `${prefix} (@${acct})`; }; -const messageForFollowButton = relationship => { - if (relationship.get('following') && relationship.get('followed_by')) { - return messages.mutual; - } else if (!relationship.get('following') && relationship.get('followed_by')) { - return messages.followBack; - } else if (relationship.get('following')) { - return messages.unfollow; - } else { - return messages.follow; - } -}; - const dateFormatOptions = { month: 'short', day: 'numeric', @@ -266,7 +252,9 @@ class Header extends ImmutablePureComponent { let info = []; let menu = []; - if (me !== account.get('id') && account.getIn(['relationship', 'blocking'])) { + if (me !== account.get('id') && account.getIn(['relationship', 'followed_by'])) { + info.push(); + } else if (me !== account.get('id') && account.getIn(['relationship', 'blocking'])) { info.push(); } @@ -292,7 +280,7 @@ class Header extends ImmutablePureComponent { } else if (account.getIn(['relationship', 'requested'])) { actionBtn =