Skip to content
Permalink
Browse files

Clarify that Akismet automatically marked the comment as spam

  • Loading branch information...
shadyvb committed Jun 30, 2014
1 parent 76b8c50 commit f2d2a05f49996d53596d9db62403808d030666ce
Showing with 2 additions and 2 deletions.
  1. +2 −2 connectors/comments.php
@@ -231,7 +231,7 @@ public static function callback_wp_insert_comment( $comment_id, $comment ) {
$ak_last_comment = Akismet::get_last_comment();
if ( 'true' == $ak_last_comment['akismet_result'] ) {
$is_spam = true;
$comment_status = __( 'marked as spam', 'stream' );
$comment_status = __( 'automatically marked as spam by Akismet', 'stream' );
}
}
$comment_type = mb_strtolower( self::get_comment_type_label( $comment_id ) );
@@ -258,7 +258,7 @@ public static function callback_wp_insert_comment( $comment_id, $comment ) {
'1: Comment author, 2: Post title 3: Comment status, 4: Comment type',
'stream'
),
compact( 'user_name', 'post_title', 'comment_status', 'comment_type', 'post_id' ),
compact( 'user_name', 'post_title', 'comment_status', 'comment_type', 'post_id', 'is_spam' ),
$comment_id,
array( $post_type => $is_spam ? 'spammed' : 'created' ),
$user_id

1 comment on commit f2d2a05

@fjarrett

This comment has been minimized.

Copy link
Contributor

commented on f2d2a05 Jun 30, 2014

@shadyvb Very nice.

Please sign in to comment.
You can’t perform that action at this time.