FIX: Don't raise an error if `comment_content` is blank

FIX: Don’t raise an error if comment_content is blank

This could happen if a user was deleted and they didn’t have a bio, for example.

diff --git a/lib/akismet.rb b/lib/akismet.rb
index 5de8a3f..21d9918 100644
--- a/lib/akismet.rb
+++ b/lib/akismet.rb
@@ -44,6 +44,8 @@ class Akismet
     end
 
     def submit_feedback(state, body)
+      return false if body[:comment_content].blank?
+
       response = post("submit-#{state}", body)
       response_body = response.body
 
diff --git a/spec/lib/akismet_spec.rb b/spec/lib/akismet_spec.rb
index 13ea692..7ab515e 100644
--- a/spec/lib/akismet_spec.rb
+++ b/spec/lib/akismet_spec.rb
@@ -49,6 +49,10 @@ describe Akismet do
   end
 
   describe '#submit_feedback' do
+    it "won't submit feedback if `comment_content` is empty" do
+      expect(client.submit_feedback('spam', {})).to eq(false)
+    end
+
     shared_examples 'sends feedback to Akismet and handles the response' do
       it "should return true" do
         Excon.expects(:post).returns(mock_response.new(200, Akismet::Client::VALID_SUBMIT_RESPONSE))

GitHub sha: bb75092a