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

Conversation

shadyvb
Copy link
Contributor

@shadyvb shadyvb commented Jun 29, 2014

Fixes #472 by properly detecting Akismet response on new comments, and reflecting on new comment log comment_type added in #558. So users now should be able to filter auto-spammed comment easily.

@fjarrett @lukecarbis Please review/test.

/cc @krogsgard Can you checkout this branch and confirm this solves your issue on #472 ?

// 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' ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@shadyvb Needs to be Yoda style

$ak_last_comment = Akismet::get_last_comment();
if ( 'true' == $ak_last_comment['akismet_result'] ) {
$is_spam = true;
$comment_status = __( 'marked as spam', 'stream' );
Copy link
Contributor

Choose a reason for hiding this comment

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

@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

@fjarrett
Copy link
Contributor

fjarrett commented Jul 7, 2014

I've got this branch installed on my personal site (which gets a lot of spam). I will see how it goes over the next several days and report back here with the results.

@fjarrett
Copy link
Contributor

fjarrett commented Jul 8, 2014

This is working great! Ready for merge.

screen shot 2014-07-08 at 12 34 59 pm

fjarrett added a commit that referenced this pull request Jul 8, 2014
Track Akismet spam checks, reflect on comment addition log #472
@fjarrett fjarrett merged commit 5abc963 into develop Jul 8, 2014
@fjarrett fjarrett deleted the issue-472 branch July 8, 2014 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove spam comments and faulty admin logins from primary activity report
2 participants