Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/29/2011 07:38:39 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Add spam checks to new topic and reply handlers. If topic/reply is spam to start, add the proper meta_status in the event it was a false positive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-reply-functions.php

    r3268 r3275  
    299299                }
    300300
    301                 // Update counts, etc...
     301                /** Spam Check ************************************************/
     302               
     303                // If reply or topic are spam, officially spam this reply
     304                if ( bbp_is_topic_spam( $topic_id ) || ( $reply_data['post_status'] == $bbp->spam_status_id ) )
     305                    add_post_meta( $reply_id, '_bbp_spam_meta_status', 'publish' );
     306
     307                /** Update counts, etc... *************************************/
     308
    302309                do_action( 'bbp_new_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author );
    303310
Note: See TracChangeset for help on using the changeset viewer.