Added/removed some functionality to better handle requests/load
- Removed status counting in dashboard for admins - Added limit to notifications to only 7 days ago - Removed ability for non-logged in users to view group, group-collection timelines - Limited account realtime search on compose, list, chat actions - Removed fetching of user suggestions - Removed fetching of shortcuts - Removed featured groups, user suggestions timeline injections - Removed group featured panel from explore layout for non logged in users - Removed media gallery panel from profile layout - Removed lists, suggestions, groups panel from home page - Removed user suggestions to list page - Updated pro_timelie in status.rb to find only from 1 hour ago - Updated home timeline to not include groups and to find only latest from 5 days ago - Removed search for non logged in users
This commit is contained in:
@@ -34,13 +34,13 @@ class UserSuggestionsPanel extends ImmutablePureComponent {
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
if (!prevState.fetched && this.state.fetched) {
|
||||
this.handleFetch()
|
||||
// this.handleFetch()
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
if (!this.props.isLazy) {
|
||||
this.handleFetch()
|
||||
// this.handleFetch()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ class UserSuggestionsPanel extends ImmutablePureComponent {
|
||||
suggestionType,
|
||||
} = this.props
|
||||
|
||||
return null
|
||||
if (suggestions.isEmpty()) return null
|
||||
|
||||
const Child = isLoading ? AccountPlaceholder : Account
|
||||
|
||||
@@ -21,7 +21,7 @@ class DefaultSidebar extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.props.onFetchShortcuts()
|
||||
// this.props.onFetchShortcuts()
|
||||
}
|
||||
|
||||
handleOpenSidebarMorePopover = () => {
|
||||
|
||||
@@ -54,6 +54,8 @@ class TimelineInjectionRoot extends React.PureComponent {
|
||||
//If is not XS and popover is pwa, dont show
|
||||
//Since not on mobile this should not be visible
|
||||
if (!isXS && type === TIMELINE_INJECTION_PWA) return <div />
|
||||
|
||||
if (type === TIMELINE_INJECTION_FEATURED_GROUPS || type === TIMELINE_INJECTION_USER_SUGGESTIONS) return <div />
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user