fix GetTheoreticalLimit() buggy logic.

This commit is contained in:
fiatjaf
2025-05-12 12:23:24 -03:00
parent 7b1f4ae49a
commit f9e2907a97
3 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -157,11 +157,7 @@ func (filter Filter) GetTheoreticalLimit() int {
return len(filter.IDs)
}
if filter.Kinds != nil {
return math.MaxInt
}
if filter.Authors != nil {
if filter.Authors != nil && filter.Kinds != nil {
allAreReplaceable := true
for _, kind := range filter.Kinds {
if !kind.IsReplaceable() {