|
|
@ -54,7 +54,7 @@ import { |
|
|
|
About, |
|
|
|
PrivacyPolicy, |
|
|
|
} from './util/async-components'; |
|
|
|
import initialState, { me, owner, singleUserMode, showTrends } from '../../initial_state'; |
|
|
|
import initialState, { me, owner, singleUserMode, showTrends, trendsAsLanding } from '../../initial_state'; |
|
|
|
import { closeOnboarding, INTRODUCTION_VERSION } from 'mastodon/actions/onboarding'; |
|
|
|
import Header from './components/header'; |
|
|
|
|
|
|
@ -163,7 +163,7 @@ class SwitchingColumnsArea extends React.PureComponent { |
|
|
|
} |
|
|
|
} else if (singleUserMode && owner && initialState?.accounts[owner]) { |
|
|
|
redirect = <Redirect from='/' to={`/@${initialState.accounts[owner].username}`} exact />; |
|
|
|
} else if (showTrends) { |
|
|
|
} else if (showTrends && trendsAsLanding) { |
|
|
|
redirect = <Redirect from='/' to='/explore' exact />; |
|
|
|
} else { |
|
|
|
redirect = <Redirect from='/' to='/about' exact />; |
|
|
|