Add interaction modal to logged-out web UI (#19306)

This commit is contained in:
Eugen Rochko
2022-10-07 10:14:31 +02:00
committed by GitHub
parent 99a43f0282
commit 7fb738c837
12 changed files with 391 additions and 47 deletions

View File

@@ -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')));