mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-17 13:08:49 +03:00
don't crash from reputation
This commit is contained in:
@@ -55,6 +55,8 @@ function convertRange(value: number, currentMin: number, currentMax: number, tar
|
||||
}
|
||||
|
||||
export function calculateReputationFromMetrics(metrics: ReputationDBResult): number {
|
||||
if (!metrics) return 0;
|
||||
|
||||
// Grace period
|
||||
if (metrics.totalSubmissions < 5) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user