forked from Cavemanon/cavepaintings
pull a bunch of r34 tweaks intro trunk
git-svn-id: file:///home/shish/svn/shimmie2/trunk@959 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@ -343,6 +343,12 @@ class CommentList extends Extension {
|
||||
else if($this->is_dupe($image_id, $comment)) {
|
||||
$event->veto("Someone already made that comment on that image -- try and be more original?");
|
||||
}
|
||||
else if(strlen($comment) > 9000) {
|
||||
$event->veto("Comment too long~");
|
||||
}
|
||||
else if(strlen($comment)/strlen(gzcompress($comment)) > 10) {
|
||||
$event->veto("Comment too repetitive~");
|
||||
}
|
||||
else if($user->is_anonymous() && $this->is_spam($comment)) {
|
||||
$event->veto("Akismet thinks that your comment is spam. Try rewriting the comment, or logging in.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user