mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +03:00
Ignore votes from short ids
This commit is contained in:
@@ -258,6 +258,10 @@ export async function voteOnSponsorTime(req: Request, res: Response): Promise<Re
|
|||||||
//invalid request
|
//invalid request
|
||||||
return res.sendStatus(400);
|
return res.sendStatus(400);
|
||||||
}
|
}
|
||||||
|
if (paramUserID.length < 30 && config.mode !== "test") {
|
||||||
|
// Ignore this vote, invalid
|
||||||
|
return res.sendStatus(200);
|
||||||
|
}
|
||||||
|
|
||||||
//hash the userID
|
//hash the userID
|
||||||
const nonAnonUserID = getHash(paramUserID);
|
const nonAnonUserID = getHash(paramUserID);
|
||||||
|
|||||||
Reference in New Issue
Block a user