diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-03 16:05:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 16:05:39 +0100 |
commit | cbb440bbc2de7c805f687c886b32ab7dbafde07f (patch) | |
tree | 38508719ce56d782a9895fb894c1be7405a0b25a /app/javascript/mastodon/features/account_timeline/containers/header_container.js | |
parent | 125322718bfe983e94937f5d127003d47a138313 (diff) |
Fix being unable to withdraw follow request when confirmation modal is disabled (#19687)
* Fix being unable to withdraw follow request when unfollow confirmation modal is disabled Fixes #19569 * Fix “unfollow” being inadequately used for withdrawing follow requests from account card
Diffstat (limited to 'app/javascript/mastodon/features/account_timeline/containers/header_container.js')
-rw-r--r-- | app/javascript/mastodon/features/account_timeline/containers/header_container.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/account_timeline/containers/header_container.js b/app/javascript/mastodon/features/account_timeline/containers/header_container.js index 62e59939c..1d09cd1ef 100644 --- a/app/javascript/mastodon/features/account_timeline/containers/header_container.js +++ b/app/javascript/mastodon/features/account_timeline/containers/header_container.js @@ -60,6 +60,8 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ confirm: intl.formatMessage(messages.cancelFollowRequestConfirm), onConfirm: () => dispatch(unfollowAccount(account.get('id'))), })); + } else { + dispatch(unfollowAccount(account.get('id'))); } } else { dispatch(followAccount(account.get('id'))); |