1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-30 15:58:20 +09:00

Fix explore prompt sometimes showing up when the home TL is loading (#27062)

This commit is contained in:
Claire 2023-09-25 17:07:01 +02:00
parent 6c25730024
commit 12bbccbe82

View File

@ -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 => ({