<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <filename>wp-content/plugins/akismet/akismet.gif</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@
 Plugin Name: Akismet
 Plugin URI: http://akismet.com/
 Description: Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a &lt;a href=&quot;http://wordpress.com/api-keys/&quot;&gt;WordPress.com API key&lt;/a&gt; to use it. You can review the spam it catches under &quot;Comments.&quot; To show off your Akismet stats just put &lt;code&gt;&amp;lt;?php akismet_counter(); ?&amp;gt;&lt;/code&gt; in your template. See also: &lt;a href=&quot;http://wordpress.org/extend/plugins/stats/&quot;&gt;WP Stats plugin&lt;/a&gt;.
-Version: 2.2.3
+Version: 2.2.4
 Author: Matt Mullenweg
 Author URI: http://ma.tt/
 */
@@ -176,7 +176,7 @@ addLoadEvent(resizeIframeInit);
 function akismet_stats_display() {
 	global $akismet_api_host, $akismet_api_port, $wpcom_api_key;
 	$blog = urlencode( get_option('home') );
-	$url = &quot;http://&quot;.get_option('wordpress_api_key').&quot;.web.akismet.com/1.0/user-stats.php?blog={$blog}&quot;;
+	$url = &quot;http://&quot;.akismet_get_key().&quot;.web.akismet.com/1.0/user-stats.php?blog={$blog}&quot;;
 	?&gt;
 	&lt;div class=&quot;wrap&quot;&gt;
 	&lt;iframe src=&quot;&lt;?php echo $url; ?&gt;&quot; width=&quot;100%&quot; height=&quot;100%&quot; frameborder=&quot;0&quot; id=&quot;akismet-stats-frame&quot;&gt;&lt;/iframe&gt;
@@ -184,6 +184,13 @@ function akismet_stats_display() {
 	&lt;?php
 }
 
+function akismet_get_key() {
+	global $wpcom_api_key;
+	if ( !empty($wpcom_api_key) )
+		return $wpcom_api_key;
+	return get_option('wordpress_api_key');
+}
+
 function akismet_verify_key( $key ) {
 	global $akismet_api_host, $akismet_api_port, $wpcom_api_key;
 	$blog = urlencode( get_option('home') );
@@ -236,6 +243,9 @@ function akismet_auto_check_comment( $comment ) {
 	$comment['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
 	$comment['referrer']   = $_SERVER['HTTP_REFERER'];
 	$comment['blog']       = get_option('home');
+	$comment['blog_lang']  = get_locale();
+	$comment['blog_charset'] = get_option('blog_charset');
+	$comment['permalink']  = get_permalink($comment['comment_post_ID']);
 
 	$ignore = array( 'HTTP_COOKIE' );
 
@@ -276,21 +286,31 @@ function akismet_delete_old() {
 }
 
 function akismet_submit_nonspam_comment ( $comment_id ) {
-	global $wpdb, $akismet_api_host, $akismet_api_port;
+	global $wpdb, $akismet_api_host, $akismet_api_port, $current_user, $current_site;
 	$comment_id = (int) $comment_id;
-
+	
 	$comment = $wpdb-&gt;get_row(&quot;SELECT * FROM $wpdb-&gt;comments WHERE comment_ID = '$comment_id'&quot;);
 	if ( !$comment ) // it was deleted
 		return;
 	$comment-&gt;blog = get_option('home');
+	$comment-&gt;blog_lang = get_locale();
+	$comment-&gt;blog_charset = get_option('blog_charset');
+	$comment-&gt;permalink = get_permalink($comment-&gt;comment_post_ID);
+	if ( is_object($current_user) ) {
+	    $comment-&gt;reporter = $current_user-&gt;user_login;
+	}
+	if ( is_object($current_site) ) {
+		$comment-&gt;site_domain = $current_site-&gt;domain;
+	}
 	$query_string = '';
 	foreach ( $comment as $key =&gt; $data )
 		$query_string .= $key . '=' . urlencode( stripslashes($data) ) . '&amp;';
+
 	$response = akismet_http_post($query_string, $akismet_api_host, &quot;/1.1/submit-ham&quot;, $akismet_api_port);
 }
 
 function akismet_submit_spam_comment ( $comment_id ) {
-	global $wpdb, $akismet_api_host, $akismet_api_port;
+	global $wpdb, $akismet_api_host, $akismet_api_port, $current_user, $current_site;
 	$comment_id = (int) $comment_id;
 
 	$comment = $wpdb-&gt;get_row(&quot;SELECT * FROM $wpdb-&gt;comments WHERE comment_ID = '$comment_id'&quot;);
@@ -299,6 +319,15 @@ function akismet_submit_spam_comment ( $comment_id ) {
 	if ( 'spam' != $comment-&gt;comment_approved )
 		return;
 	$comment-&gt;blog = get_option('home');
+	$comment-&gt;blog_lang = get_locale();
+	$comment-&gt;blog_charset = get_option('blog_charset');
+	$comment-&gt;permalink = get_permalink($comment-&gt;comment_post_ID);
+	if ( is_object($current_user) ) {
+	    $comment-&gt;reporter = $current_user-&gt;user_login;
+	}
+	if ( is_object($current_site) ) {
+		$comment-&gt;site_domain = $current_site-&gt;domain;
+	}
 	$query_string = '';
 	foreach ( $comment as $key =&gt; $data )
 		$query_string .= $key . '=' . urlencode( stripslashes($data) ) . '&amp;';
@@ -787,6 +816,9 @@ function akismet_recheck_queue() {
 		$c['user_agent'] = $c['comment_agent'];
 		$c['referrer']   = '';
 		$c['blog']       = get_option('home');
+		$c['blog_lang']  = get_locale();
+		$c['blog_charset'] = get_option('blog_charset');
+		$c['permalink']  = get_permalink($c['comment_post_ID']);
 		$id = (int) $c['comment_ID'];
 
 		$query_string = '';
@@ -816,6 +848,9 @@ function akismet_check_db_comment( $id ) {
 	$c['user_agent'] = $c['comment_agent'];
 	$c['referrer']   = '';
 	$c['blog']       = get_option('home');
+	$c['blog_lang']  = get_locale();
+	$c['blog_charset'] = get_option('blog_charset');
+	$c['permalink']  = get_permalink($c['comment_post_ID']);
 	$id = $c['comment_ID'];
 
 	$query_string = '';</diff>
      <filename>wp-content/plugins/akismet/akismet.php</filename>
    </modified>
    <modified>
      <filename>wp-content/plugins/akismet/readme.txt</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e5ab219535ed17c45c13447b679834a01e6d2ba8</id>
    </parent>
  </parents>
  <author>
    <name>Alexandre Girard</name>
    <email>alx.girard@gmail.com</email>
  </author>
  <url>http://github.com/alx/pressmark/commit/292105b59c73d02781c64d5ccc79429da855e40f</url>
  <id>292105b59c73d02781c64d5ccc79429da855e40f</id>
  <committed-date>2009-06-08T01:09:43-07:00</committed-date>
  <authored-date>2009-06-08T01:09:43-07:00</authored-date>
  <message>update akismet plugin to 2.2.4</message>
  <tree>d759d484ebdcbefbc459be929fe9f395883d8447</tree>
  <committer>
    <name>Alexandre Girard</name>
    <email>alx.girard@gmail.com</email>
  </committer>
</commit>
