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/containers | |
parent | 99a43f0282d5115b75a564205ca7d2db31a3a945 (diff) |
Add interaction modal to logged-out web UI (#19306)
Diffstat (limited to 'app/javascript/mastodon/containers')
-rw-r--r-- | app/javascript/mastodon/containers/status_container.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/javascript/mastodon/containers/status_container.js b/app/javascript/mastodon/containers/status_container.js index 9280a6ee3..294105f25 100644 --- a/app/javascript/mastodon/containers/status_container.js +++ b/app/javascript/mastodon/containers/status_container.js @@ -237,6 +237,14 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({ dispatch(deployPictureInPicture(status.get('id'), status.getIn(['account', 'id']), type, mediaProps)); }, + onInteractionModal (type, status) { + dispatch(openModal('INTERACTION', { + type, + accountId: status.getIn(['account', 'id']), + url: status.get('url'), + })); + }, + }); export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Status)); |