about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/account_timeline/containers/header_container.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-10-07 10:14:31 +0200
committerGitHub <noreply@github.com>2022-10-07 10:14:31 +0200
commit7fb738c8372a700e1b42534cb202005b8c73b946 (patch)
tree3ec4b6233b492fc86d1003cda0770641e47f2984 /app/javascript/mastodon/features/account_timeline/containers/header_container.js
parent99a43f0282d5115b75a564205ca7d2db31a3a945 (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.js8
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')));