Skip to content

Commit 2875e3c

Browse files
authored
Merge pull request #61 from fiatjaf/fix/curation-thresholds
Use max instead of min for curation vote thresholds
2 parents 98764fb + 0a40315 commit 2875e3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

curation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ func processReactions(ctx context.Context, event nostr.Event) {
5454
}
5555
}
5656

57-
popularThreshold := min(2, (totalMembers*global.Settings.Popular.PercentThreshold)/100)
58-
uppermostThreshold := min(3, (totalMembers*global.Settings.Uppermost.PercentThreshold)/100)
57+
popularThreshold := max(2, (totalMembers*global.Settings.Popular.PercentThreshold)/100)
58+
uppermostThreshold := max(3, (totalMembers*global.Settings.Uppermost.PercentThreshold)/100)
5959

6060
// for all events we meet the popular threshold for
6161
for target, votes := range popularVotes {

0 commit comments

Comments
 (0)