only send anonymous comments to akismet

git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@602 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-10-28 18:08:56 +00:00
parent 5b26baae03
commit a4d9261e0b

View File

@ -276,9 +276,9 @@ class CommentList extends Extension {
$this->theme->display_error($page, "Comment Limit Hit", $this->theme->display_error($page, "Comment Limit Hit",
"You've posted several comments recently; wait a minute and try again..."); "You've posted several comments recently; wait a minute and try again...");
} }
else if($this->is_spam($comment)) { else if($user->is_anonymous() && $this->is_spam($comment)) {
$this->theme->display_error($page, "Spam Detected", $this->theme->display_error($page, "Spam Detected",
"Akismet thinks that your comment is spam. Try rewriting the comment?"); "Akismet thinks that your comment is spam. Try rewriting the comment, or logging in.");
} }
else { else {
$database->Execute( $database->Execute(