diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-07 10:14:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 10:14:31 +0200 |
commit | 7fb738c8372a700e1b42534cb202005b8c73b946 (patch) | |
tree | 3ec4b6233b492fc86d1003cda0770641e47f2984 /app/javascript/mastodon/features/account_timeline/containers/header_container.js | |
parent | 99a43f0282d5115b75a564205ca7d2db31a3a945 (diff) |
Add interaction modal to logged-out web UI (#19306)
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 | 8 |
1 files changed, 8 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 3d6eb487d..46fa573dd 100644 --- a/app/javascript/mastodon/features/account_timeline/containers/header_container.js +++ b/app/javascript/mastodon/features/account_timeline/containers/header_container.js @@ -57,6 +57,14 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ } }, + onInteractionModal (account) { + dispatch(openModal('INTERACTION', { + type: 'follow', + accountId: account.get('id'), + url: account.get('url'), + })); + }, + onBlock (account) { if (account.getIn(['relationship', 'blocking'])) { dispatch(unblockAccount(account.get('id'))); |