Change hashtags and mentions in bios to open in-app in web UI (#24643)
This commit is contained in:
parent
e9a79d46cd
commit
8099ba04be
6 changed files with 82 additions and 9 deletions
|
@ -10,6 +10,7 @@ import {
|
|||
pinAccount,
|
||||
unpinAccount,
|
||||
} from '../../../actions/accounts';
|
||||
import { openURL } from 'mastodon/actions/search';
|
||||
import {
|
||||
mentionCompose,
|
||||
directCompose,
|
||||
|
@ -159,6 +160,10 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
|
|||
}));
|
||||
},
|
||||
|
||||
onOpenURL (url, routerHistory, onFailure) {
|
||||
dispatch(openURL(url, routerHistory, onFailure));
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Header));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue