From 62f5c723661be191a3d6aebbd055570c1efb3cdf Mon Sep 17 00:00:00 2001
Message-Id: <62f5c723661be191a3d6aebbd055570c1efb3cdf.1332953281.git.dmitriy.trt@gmail.com>
From: "Dmitriy.trt" <dmitriy.trt@gmail.com>
Date: Wed, 28 Mar 2012 23:47:55 +0700
Subject: [PATCH] Issue #1506684: remove comment spam marks on comment delete

---
 antispam.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/antispam.module b/antispam.module
index 56fe3b2..9bd75f1 100755
--- a/antispam.module
+++ b/antispam.module
@@ -1111,7 +1111,7 @@ function _antispam_comment_save($comment) {
 */
 function antispam_comment_delete($comment) {
   db_delete('antispam_spam_marks')
-    ->condition('content_type', 'node')
+    ->condition('content_type', 'comment')
     ->condition('content_id', $comment->cid)
     ->execute();
 }
-- 
1.7.8.3

