From fb6e98f93f0d93455bd93889157df733450be851 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 11 Feb 2022 12:05:04 -0500 Subject: [PATCH] Don't allow changing highlight category --- src/routes/voteOnSponsorTime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/voteOnSponsorTime.ts b/src/routes/voteOnSponsorTime.ts index 5a9c47b..22be041 100644 --- a/src/routes/voteOnSponsorTime.ts +++ b/src/routes/voteOnSponsorTime.ts @@ -210,7 +210,7 @@ async function categoryVote(UUID: SegmentUUID, userID: UserID, isVIP: boolean, i if (!config.categoryList.includes(category)) { 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" }; }