Limit visible posts to 45
This commit is contained in:
parent
453e17b6eb
commit
6417194d90
|
|
@ -114,8 +114,8 @@ function getPostTimeMs(p) {
|
||||||
return d.getTime();
|
return d.getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
const MAX_POOL_POSTS = 90;
|
const MAX_POOL_POSTS = 75;
|
||||||
const MAX_VISIBLE_POSTS = 60;
|
const MAX_VISIBLE_POSTS = 45;
|
||||||
|
|
||||||
function prunePosts(posts, center, maxCount) {
|
function prunePosts(posts, center, maxCount) {
|
||||||
if (!Array.isArray(posts) || posts.length <= maxCount) return posts || [];
|
if (!Array.isArray(posts) || posts.length <= maxCount) return posts || [];
|
||||||
|
|
@ -659,7 +659,7 @@ export function usePostsEngine({
|
||||||
lat,
|
lat,
|
||||||
lon: lng,
|
lon: lng,
|
||||||
radius_km: radiusKm,
|
radius_km: radiusKm,
|
||||||
limit: 60,
|
limit: 45,
|
||||||
zoom,
|
zoom,
|
||||||
bounds,
|
bounds,
|
||||||
username: username || undefined,
|
username: username || undefined,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue