Limit visible posts to 45

This commit is contained in:
Your Name 2025-12-26 02:34:30 -05:00
parent 453e17b6eb
commit 6417194d90
1 changed files with 3 additions and 3 deletions

View File

@ -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,