Check for comment_content before stripping

Check for comment_content before stripping

diff --git a/lib/akismet.rb b/lib/akismet.rb
index 4547a54..3811aaf 100644
--- a/lib/akismet.rb
+++ b/lib/akismet.rb
@@ -71,7 +71,7 @@ class Akismet
     def post(path, body)
       # Send a maximum of 32000 chars which is the default for
       # maximum post length site settings.
-      body[:comment_content] = body[:comment_content].strip[0..31999]
+      body[:comment_content] = body[:comment_content].strip[0..31999] if body[:comment_content].present?
 
       response = Excon.post("#{@api_url}/#{path}",
         body: body.merge(blog: @base_url).to_query,

GitHub sha: 49df1075

Revert "Check for comment_content before stripping"