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:
shish
2008-07-29 19:43:34 +00:00
parent 8ac2428820
commit c741ea216f
3 changed files with 25 additions and 3 deletions

View File

@ -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.");
}