From 4f981c1229b0c18ea7c955bfa6f5df1a19edfa7e Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Wed, 25 Aug 2021 18:51:22 -0400 Subject: [PATCH] Clarify lock reason --- 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 492e5dc..a77228e 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -362,7 +362,7 @@ async function checkEachSegmentValid(userID: string, videoID: VideoID errorCode: 403, errorMessage: `New submissions are not allowed for the following category: ` + - `'${segments[i].category}'. A moderator has decided that no new segments are needed and that all current segments of this category are timed perfectly.\n` + + `'${segments[i].category}'. A moderator has decided that no new segments are needed on this video and that all current segments of this category are timed perfectly.\n` + `${lockedCategoryList[lockIndex].reason?.length !== 0 ? `\nLock reason: '${lockedCategoryList[lockIndex].reason}'` : ""}\n` + `${(segments[i].category === "sponsor" ? "\nMaybe the segment you are submitting is a different category that you have not enabled and is not a sponsor. " + "Categories that aren't sponsor, such as self-promotion can be enabled in the options.\n" : "")}` +