/// <summary>
 /// Performs simple analysis to make a best guess at the feedback's spam potential
 /// </summary>
 /// <param name="feedback">The feedback to check for spam</param>
 /// <returns></returns>
 private bool doesFeedbackHaveSpamPotential(IFeedback feedback)
 {
     //TODO: Add more rules as we see fit. For now, we will use the simple rule: if it contains hyperlinks, it might be spam.
     return(SiteUtilities.FindHyperLinks(feedback.Content).Count > 0);
 }
Example #2
0
 public static MatchCollection FindHyperLinks(string content)
 {
     return(SiteUtilities.FindHyperLinks(content));
 }