mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 14:37:17 +03:00
Remove minimum submission duration for mutes
This commit is contained in:
@@ -315,7 +315,7 @@ async function checkEachSegmentValid(rawIP: IPAddress, paramUserID: UserID, user
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(isVIP || isTempVIP) && segments[i].category === "sponsor"
|
if (!(isVIP || isTempVIP) && segments[i].category === "sponsor"
|
||||||
&& segments[i].actionType !== ActionType.Full && (endTime - startTime) < 1) {
|
&& segments[i].actionType === ActionType.Skip && (endTime - startTime) < 1) {
|
||||||
// Too short
|
// Too short
|
||||||
return { pass: false, errorMessage: "Segments must be longer than 1 second long", errorCode: 400 };
|
return { pass: false, errorMessage: "Segments must be longer than 1 second long", errorCode: 400 };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user