diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-10-25 19:03:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 19:03:16 +0200 |
commit | 267978d4fe0eaee92f64d505df2a4a07d22f582c (patch) | |
tree | 64e5ae470bf566b1ddf2bc00376a37e6416ea330 /app/javascript/mastodon/features/explore/index.js | |
parent | 0ca29eaa3f762219cacce46059acfa71393533ad (diff) |
Remove navigation links to /explore when trends are disabled (#19415)
* Remove navigation links to /explore when trends are disabled * Do not display trends interface when trends are disabled
Diffstat (limited to 'app/javascript/mastodon/features/explore/index.js')
-rw-r--r-- | app/javascript/mastodon/features/explore/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/explore/index.js b/app/javascript/mastodon/features/explore/index.js index 1c7049e97..552def142 100644 --- a/app/javascript/mastodon/features/explore/index.js +++ b/app/javascript/mastodon/features/explore/index.js @@ -12,6 +12,7 @@ import Suggestions from './suggestions'; import Search from 'mastodon/features/compose/containers/search_container'; import SearchResults from './results'; import { Helmet } from 'react-helmet'; +import { showTrends } from 'mastodon/initial_state'; const messages = defineMessages({ title: { id: 'explore.title', defaultMessage: 'Explore' }, @@ -20,7 +21,7 @@ const messages = defineMessages({ const mapStateToProps = state => ({ layout: state.getIn(['meta', 'layout']), - isSearching: state.getIn(['search', 'submitted']), + isSearching: state.getIn(['search', 'submitted']) || !showTrends, }); export default @connect(mapStateToProps) |