Merge remote-tracking branch 'parent/main' into kb_migration

This commit is contained in:
KMY 2023-07-18 11:35:02 +09:00
commit a56a732dd2
57 changed files with 986 additions and 605 deletions

View file

@ -493,10 +493,12 @@ class UI extends PureComponent {
};
handleHotkeyBack = () => {
if (window.history && window.history.state) {
this.context.router.history.goBack();
const { router } = this.context;
if (router.history.location?.state?.fromMastodon) {
router.history.goBack();
} else {
this.context.router.history.push('/');
router.history.push('/');
}
};