From 27947dc65f2b5125afbbafe2d56cd21bd501e07c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 25 Sep 2020 14:36:16 -0400 Subject: [PATCH] Improve no segments error message --- src/routes/postSkipSegments.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/postSkipSegments.js b/src/routes/postSkipSegments.js index 861c0f1..ff610d2 100644 --- a/src/routes/postSkipSegments.js +++ b/src/routes/postSkipSegments.js @@ -297,6 +297,8 @@ module.exports = async function postSkipSegments(req, res) { res.status(403).send( "Request rejected by auto moderator: 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. " + + (segments[i].category === "sponsor" ? "Maybe 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 enable in the options. " : "") + "If you believe this is incorrect, please contact someone on Discord." ); return;