in src/AIHub/Controllers/ContentSafetyController.cs [286:305]
private bool CheckNullValues(HttpContext httpContext)
{
if (string.IsNullOrEmpty(httpContext.Request.Form["severitytext"]))
{
return true;
}
if (string.IsNullOrEmpty(httpContext.Request.Form["violencetext"]))
{
return true;
}
if (string.IsNullOrEmpty(httpContext.Request.Form["shtext"]))
{
return true;
}
if (string.IsNullOrEmpty(httpContext.Request.Form["hatetext"]))
{
return true;
}
return false;
}