Skip to content

Commit

Permalink
Clarify that Akismet automatically marked the comment as spam
Browse files Browse the repository at this point in the history
  • Loading branch information
shadyvb committed Jun 30, 2014
1 parent 76b8c50 commit f2d2a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connectors/comments.php
Expand Up @@ -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 ) );
Expand All @@ -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
Expand Down

1 comment on commit f2d2a05

@fjarrett
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shadyvb Very nice.

Please sign in to comment.