mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Remove minimum submission duration for mutes
This commit is contained in:
parent
f58da275eb
commit
ecfc2c14c8
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ async function checkEachSegmentValid(rawIP: IPAddress, paramUserID: UserID, user
|
|||
}
|
||||
|
||||
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
|
||||
return { pass: false, errorMessage: "Segments must be longer than 1 second long", errorCode: 400 };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue