mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-23 07:58:22 +03:00
Add hiding dearrow submissions in ban code
This commit is contained in:
@@ -554,7 +554,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise<Res
|
||||
|
||||
if (!userBanCount && ipBanCount) {
|
||||
// Make sure the whole user is banned
|
||||
banUser(userID, true, true, 1, config.categoryList as Category[])
|
||||
banUser(userID, true, true, 1, config.categoryList as Category[], config.deArrowTypes)
|
||||
.catch((e) => Logger.error(`Error banning user after submitting from a banned IP: ${e}`));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user