Optimize feeds a bit more, push local relay url up a layer to avoid opting in when we don't want it

This commit is contained in:
Jon Staab
2024-11-08 15:29:11 -08:00
parent 07b439eef2
commit 2878aeec64
5 changed files with 23 additions and 10 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ export const getFilterGenerality = (filter: Filter) => {
return 1
}
export const guessFilterDelta = (filters: Filter[], max = 60 * 60 * 24 * 7) =>
export const guessFilterDelta = (filters: Filter[], max = 60 * 60 * 24) =>
Math.round(max * Math.max(0.01, 1 - avg(filters.map(getFilterGenerality))))
// If a filter is specifying ids, we know how many results to expect