Block repeat offenders from appealing
All checks were successful
Test, Build, Deploy / Test, Build, and Deploy (push) Successful in 47s
Test, Build, Deploy / Create Sentry Release (push) Successful in 6s

This commit is contained in:
2026-03-31 01:32:48 -04:00
parent 709713471f
commit b69b5cb4eb

View File

@@ -78,6 +78,16 @@ export default async function (
).toLocaleString()} to submit an appeal`,
};
if (
userLogs.results.find((r: Record<string, any>) =>
r.action.startsWith("accept appeal"),
)
)
return {
can_appeal: false,
reason: "We do not accept appeals from repeat offenders",
};
const types: string[] = [];
if (banList[user].BanType) types.push("ban");