Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track Akismet spam checks, reflect on comment addition log #472 #587

Merged
merged 3 commits into from Jul 8, 2014
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Yoda

  • Loading branch information...
shadyvb committed Jun 30, 2014
commit 76b8c50c83ccf1cca07eb4e3e6478d01be8f2dba
@@ -229,7 +229,7 @@ public static function callback_wp_insert_comment( $comment_id, $comment ) {
// Auto-marked spam comments
if ( class_exists( 'Akismet' ) && Akismet::matches_last_comment( $comment ) ) {
$ak_last_comment = Akismet::get_last_comment();
if ( $ak_last_comment['akismet_result'] == 'true' ) {
if ( 'true' == $ak_last_comment['akismet_result'] ) {
$is_spam = true;
$comment_status = __( 'marked as spam', 'stream' );

This comment has been minimized.

Copy link
@fjarrett

fjarrett Jun 30, 2014

Contributor

@shadyvb I think we should also add some Steam meta here as well as indicate in the summary that Akismet had involvement with the action.

screen_shot_2014-06-30_at_1_03_20_pm

}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.