mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 04:57:04 +03:00
Allow VIP to submit poi segments at any time
This commit is contained in:
@@ -390,8 +390,8 @@ async function checkEachSegmentValid(userID: string, videoID: VideoID
|
|||||||
return { pass: false, errorMessage: "One of your segments times are invalid (too short, startTime before endTime, etc.)", errorCode: 400};
|
return { pass: false, errorMessage: "One of your segments times are invalid (too short, startTime before endTime, etc.)", errorCode: 400};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for POI segments before 1 second
|
// Check for POI segments before some seconds
|
||||||
if (getCategoryActionType(segments[i].category) === CategoryActionType.POI && startTime < config.poiMinimumStartTime) {
|
if (!isVIP && getCategoryActionType(segments[i].category) === CategoryActionType.POI && startTime < config.poiMinimumStartTime) {
|
||||||
return { pass: false, errorMessage: `POI cannot be that early`, errorCode: 400};
|
return { pass: false, errorMessage: `POI cannot be that early`, errorCode: 400};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user