Anti-Splog Plugin & Custom Post Types

Hi, We use the anti-splog plugin at PressBooks.Com. It’s a decent plugin but it could be improved.

Looking at the anti-splog source code we see:

//latest post
$post = $wpdb->get_row("SELECT post_title, post_content FROM {$wpdb->base_prefix}{$blog_id}_posts WHERE post_status = 'publish' AND post_type = 'post' AND ID != '1' ORDER BY post_date DESC LIMIT 1");

if ($post)
$api_data['post_content'] = $post->post_title . "n" . $post->post_content;

//send blog info to API
ust_http_post('spam_blog', $api_data);

Specifically, I have a problem with:

post_type = 'post'

On PressBooks.Com our post_type(s) will be: ‘front-matter’, ‘part’, ‘chapter’ or ‘back-matter’.

Our post_type will never be ‘post’ (and rarely ‘page’ as seen elsewhere in the code.)

So, as it stands we aren’t sending anything useful your premium server and in return aren’t getting much of anything back either.

As we are paying a yearly subscription for a spam-analysis API key, it would be great if the query took custom post_types into consideration.

Sourcecode for the PressBooks plugin, here.

Thank you for your consideration.