mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 23:47:00 +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;
|
const voteType = 1;
|
||||||
|
|
||||||
if (title && !isVip && title.title.length > config.maxTitleLength) {
|
if (title && !isVip && title.title.length > config.maxTitleLength) {
|
||||||
|
lock.unlock();
|
||||||
res.status(400).send("Your title is too long. Please keep titles concise.");
|
res.status(400).send("Your title is too long. Please keep titles concise.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user