From 31fef27ffd161acecddf62fac6883d344e663d70 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 25 Sep 2020 14:50:15 -0400 Subject: [PATCH] Fix no segments error formatting --- src/routes/postSkipSegments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/postSkipSegments.js b/src/routes/postSkipSegments.js index ff610d2..e8341ee 100644 --- a/src/routes/postSkipSegments.js +++ b/src/routes/postSkipSegments.js @@ -296,9 +296,9 @@ module.exports = async function postSkipSegments(req, res) { logger.warn("Caught a no-segment submission. userID: '" + userID + "', videoID: '" + videoID + "', category: '" + segments[i].category + "'"); 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 + "'. A moderator has decided that no new segments are needed and that all current segments of this category are timed perfectly.\n\n " + (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. " : "") + "Categories that aren't sponsor, such as self-promotion can enabled in the options.\n\n " : "") + "If you believe this is incorrect, please contact someone on Discord." ); return;