mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 15:37:07 +03:00
Add unlocking to long title error
This commit is contained in:
@@ -53,6 +53,7 @@ export async function postBranding(req: Request, res: Response) {
|
||||
const voteType = 1;
|
||||
|
||||
if (title && !isVip && title.title.length > config.maxTitleLength) {
|
||||
lock.unlock();
|
||||
res.status(400).send("Your title is too long. Please keep titles concise.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user