From e6e8c8e5a1ce28af7ac260b19d8e7179377a91d3 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sat, 12 Nov 2022 12:43:16 -0500 Subject: [PATCH] Added suggestion to refresh for locks --- src/routes/postSkipSegments.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index eb976e8..558946d 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -266,9 +266,10 @@ async function checkEachSegmentValid(rawIP: IPAddress, paramUserID: UserID, user pass: false, errorCode: 403, errorMessage: - `Users have voted that new segments aren't needed on this video for the following category: ` + + `Users have voted that all the necessary segments have been submitted for the following category: ` + `'${segments[i].category}'\n` + - `${lockedCategoryList[lockIndex].reason?.length !== 0 ? `\nReason: '${lockedCategoryList[lockIndex].reason}'` : ""}\n` + + `${lockedCategoryList[lockIndex].reason?.length !== 0 ? `\nReason: '${lockedCategoryList[lockIndex].reason}\n'` : ""}` + + `You may need to refresh if you don't see the segments.\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" : "")}` + `\nIf you believe this is incorrect, please contact someone on chat.sponsor.ajay.app, discord.gg/SponsorBlock or matrix.to/#/#sponsor:ajay.app`