C# Class OurUmbraco.Forum.AntiSpam.SpamChecker

Mostra file Open project: umbraco/OurUmbraco

Public Methods

Method Description
IsSpam ( IMember member, string body ) : bool
SendSlackSpamReport ( string postBody, int topicId, string commentType, int memberId ) : void

Private Methods

Method Description
CountValidLinks ( string href, int validLinksCount ) : int
IsSuspiciousBehavior ( string body ) : bool
NewAndPostsALot ( IMember member ) : bool
TextContainsSpam ( string text ) : bool

Method Details

IsSpam() public static method

public static IsSpam ( IMember member, string body ) : bool
member IMember
body string
return bool

SendSlackSpamReport() public static method

public static SendSlackSpamReport ( string postBody, int topicId, string commentType, int memberId ) : void
postBody string
topicId int
commentType string
memberId int
return void