From a4d9261e0bb1149c690a2d4c499051a4e3a11c6f Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 28 Oct 2007 18:08:56 +0000 Subject: [PATCH] only send anonymous comments to akismet git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@602 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/comment/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index eeb80921..d664a0ee 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -276,9 +276,9 @@ class CommentList extends Extension { $this->theme->display_error($page, "Comment Limit Hit", "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", - "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 { $database->Execute(