Clarify error message

This commit is contained in:
Ajay Ramachandran
2020-09-11 17:30:54 -04:00
parent 6843e22a7b
commit a49db96d49

View File

@@ -218,7 +218,7 @@ async function autoModerateSubmission(submission) {
} }
if (nbDecision){ if (nbDecision){
return "NB disagreement."; return "Rejected based on NeuralBlock predictions.";
} else { } else {
return false; return false;
} }
@@ -318,7 +318,7 @@ module.exports = async function postSkipSegments(req, res) {
// Auto moderator check // Auto moderator check
if (!isVIP) { if (!isVIP) {
let autoModerateResult = await autoModerateSubmission({userID, videoID, segments});//startTime, endTime, category: segments[i].category}); let autoModerateResult = await autoModerateSubmission({userID, videoID, segments});//startTime, endTime, category: segments[i].category});
if (autoModerateResult == "NB disagreement."){ if (autoModerateResult == "Rejected based on NeuralBlock predictions."){
// If NB automod rejects, the submission will start with -2 votes. // If NB automod rejects, the submission will start with -2 votes.
// Note, if one submission is bad all submissions will be affected. // Note, if one submission is bad all submissions will be affected.
// However, this behavior is consistent with other automod functions // However, this behavior is consistent with other automod functions