If a user has just 1 report within the last 30 days - verify cannot be completed.

This commit is contained in:
ExtrasContainer
2024-02-05 19:19:35 +00:00
parent 9d3db21bb2
commit dc3978f8cc
+1 -1
View File
@@ -21,7 +21,7 @@ async function dangercordcheckVerification(userId, accessToken) {
return 1; // Allowed to continue return 1; // Allowed to continue
} else { } else {
// Determine if report level is acceptable // Determine if report level is acceptable
if (userData.reports >= 2 && userData.last_reported >= Date.now() - (30 * 24 * 60 * 60 * 1000)) { if (userData.reports >= 1 && userData.last_reported >= Date.now() - (30 * 24 * 60 * 60 * 1000)) {
return 0; // Not allowed to continue return 0; // Not allowed to continue
} else { } else {
return 1; // Allowed to continue return 1; // Allowed to continue