From ecfc2c14c808fb823c0841c4c9ef8c19c85d5281 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sat, 5 Aug 2023 13:59:02 -0400 Subject: [PATCH] Remove minimum submission duration for mutes --- src/routes/postSkipSegments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index a930fb5..f57e46e 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -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 }; }