mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-16 16:37:12 +03:00
Don't allow changing highlight category
This commit is contained in:
@@ -210,7 +210,7 @@ async function categoryVote(UUID: SegmentUUID, userID: UserID, isVIP: boolean, i
|
|||||||
if (!config.categoryList.includes(category)) {
|
if (!config.categoryList.includes(category)) {
|
||||||
return { status: 400, message: "Category doesn't exist." };
|
return { status: 400, message: "Category doesn't exist." };
|
||||||
}
|
}
|
||||||
if (videoInfo.actionType === ActionType.Poi) {
|
if (videoInfo.actionType === ActionType.Poi || category === "poi_highlight") {
|
||||||
return { status: 400, message: "Not allowed to change category for single point segments" };
|
return { status: 400, message: "Not allowed to change category for single point segments" };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user