<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -33,8 +33,10 @@ class Comments &lt; Dynasnip
     comment = app.request.params.reject { |k,v| ![:author, :email, :website, :content].include?(k) }
     
     return &quot;You need to add some details!&quot; if comment.empty?
-
-    if comment_is_spam?(comment)
+    
+    comment = check_for_spam(comment)
+    
+    if comment[:spam]
       &quot;Sorry - your comment looks like spam, according to Defensio :(&quot;
     else
       return &quot;No spam today, thanks anyway&quot; unless app.request.params[:human] == 'human'
@@ -62,7 +64,7 @@ class Comments &lt; Dynasnip
     end.join + &quot;&lt;/ol&gt;&quot;    
   end
   
-  def comment_is_spam?(comment)
+  def check_for_spam(comment)
     snip_date = Date.parse(Soup[app.request.params[:snip]].updated_at)
     Defensio.configure(YAML.load(File.read('defensio.yml')))
     defensio_params = {
@@ -75,7 +77,15 @@ class Comments &lt; Dynasnip
       :article_date =&gt; snip_date.strftime(&quot;%Y/%m/%d&quot;)
     }
     audit = Defensio.audit_comment(defensio_params)
-    audit[&quot;defensio_result&quot;][&quot;spam&quot;]
+    
+    # Augment the comment hash
+    comment[:user_ip] = app.request.ip
+    comment[:spamminess] = audit[&quot;defensio_result&quot;][&quot;spamminess&quot;]
+    comment[:spam] = audit[&quot;defensio_result&quot;][&quot;spam&quot;]
+    comment[:defensio_signature] = audit[&quot;defensio_result&quot;][&quot;signature&quot;]
+    comment[:defensio_message] = audit[&quot;defensio_result&quot;][&quot;message&quot;]
+    
+    comment
   end
   
   attribute :comment_template, %{</diff>
      <filename>lib/vanilla/dynasnips/comments.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>88b705b88a2d78d0162f5822adfec87d99e77a9a</id>
    </parent>
  </parents>
  <author>
    <name>James Adam</name>
    <email>james@lazyatom.com</email>
  </author>
  <url>http://github.com/lazyatom/vanilla-rb/commit/a310154f0701092b205bc39cdb1fdad28bbe92ae</url>
  <id>a310154f0701092b205bc39cdb1fdad28bbe92ae</id>
  <committed-date>2008-08-28T07:35:50-07:00</committed-date>
  <authored-date>2008-08-28T07:35:50-07:00</authored-date>
  <message>Adding more debugging to the defensio stuff, to track down what's going wrong.</message>
  <tree>ca66244a48dc6451e221372720a2dc574340df71</tree>
  <committer>
    <name>James Adam</name>
    <email>james@lazyatom.com</email>
  </committer>
</commit>
