Skip to content

Commit

Permalink
Fix explore prompt sometimes showing up when the home TL is loading (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Sep 25, 2023
1 parent 3de6dcf commit a001ae2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/javascript/mastodon/features/home_timeline/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ const homeTooSlow = createSelector([
getHomeFeedSpeed,
], (isLoading, isPartial, speed) =>
!isLoading && !isPartial // Only if the home feed has finished loading
&& (speed.gap > (30 * 60) // If the average gap between posts is more than 20 minutes
|| (Date.now() - speed.newest) > (1000 * 3600)) // If the most recent post is from over an hour ago
&& (
(speed.gap > (30 * 60) // If the average gap between posts is more than 30 minutes
|| (Date.now() - speed.newest) > (1000 * 3600)) // If the most recent post is from over an hour ago
)
);

const mapStateToProps = state => ({
Expand Down

0 comments on commit a001ae2

Please sign in to comment.