[Glitch] Add option to open original page in dropdowns of remote content in web UI

Port ef582dc4f2 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko
2022-11-10 08:49:35 +01:00
committed by Claire
parent 099b3011aa
commit c4d2c72924
7 changed files with 110 additions and 39 deletions

View File

@ -161,6 +161,13 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
}));
},
onOpenAvatar (account) {
dispatch(openModal('IMAGE', {
src: account.get('avatar'),
alt: account.get('acct'),
}));
},
});
export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Header));