More appropriate limits

This commit is contained in:
Vitor Pamplona
2025-07-21 10:11:03 -04:00
parent 8a3bb6e1ae
commit 1c5acc00f3
5 changed files with 8 additions and 8 deletions
@@ -63,7 +63,7 @@ fun filterHomePostsByGeohashes(
Filter(
kinds = HomePostsByGeohashKinds,
tags = mapOf("g" to geotags.sorted()),
limit = 100,
limit = geotags.size * 20,
since = since,
),
),
@@ -78,7 +78,7 @@ fun filterHomePostsByGlobal(
filter =
Filter(
kinds = HomePostsByGlobalKinds,
limit = 400,
limit = 50,
since = since,
),
),
@@ -87,7 +87,7 @@ fun filterHomePostsByGlobal(
filter =
Filter(
kinds = HomePostsByGlobalKinds2,
limit = 400,
limit = 50,
since = since,
),
),
@@ -41,7 +41,7 @@ fun filterHomePostsByScopes(
Filter(
kinds = CommentKinds,
tags = mapOf("I" to scopesToLoad.toList()),
limit = 100,
limit = scopesToLoad.size * 20,
since = since,
),
),
@@ -80,7 +80,7 @@ fun filterHomePostsByAuthors(
Filter(
kinds = HomePostsKinds,
authors = authorList,
limit = 400,
limit = authorList.size * 10,
since = since,
),
),
@@ -90,7 +90,7 @@ fun filterHomePostsByAuthors(
Filter(
kinds = HomePostsKinds2,
authors = authorList,
limit = 400,
limit = authorList.size * 10,
since = since,
),
),
@@ -46,7 +46,7 @@ fun filterHomePostsFromAllCommunities(
"a" to communityList,
"k" to HomePostsFromCommunityKindsStr,
),
limit = 300,
limit = communityList.size * 20,
since = since,
),
),
@@ -57,7 +57,7 @@ fun filterHomePostsFromAllCommunities(
Filter(
tags = mapOf("a" to communityList),
kinds = HomePostsFromCommunityKinds,
limit = 300,
limit = communityList.size * 20,
since = since,
),
),