WordPress.org

Ready to get started?Download WordPress

Forums

bbPress Notify
Being notified of spam comments (4 posts)

  1. useStrict
    Member
    Posted 1 year ago #

    Hi Andreas,

    First of all, congrats on the plugin. It's really handy!

    One suggestion I'd like to make, however, is that you trigger the notification only if the comment hasn't been flagged as spam by Akismet.

    Cheers,
    Vinny

    http://wordpress.org/extend/plugins/bbpress-notify/

  2. useStrict
    Member
    Posted 1 year ago #

    I fixed it myself. Please apply this change to your next version.

    function notify_new_reply($topic_id = 0, $forum_id = 0, $anonymous_data = false, $topic_author = 0)
    {
    	global $wpdb;
    
    	if (get_post_status($topic_id) == 'spam') return;
    
    	$opt_recipients = get_option('bbpress_notify_newreply_recipients');
    	$recipients = array();

    and

    function notify_new_topic($topic_id = 0, $forum_id = 0, $anonymous_data = false, $topic_author = 0)
    {
    	global $wpdb;
    
    	if (get_post_status($topic_id) == 'spam') return;
    
    	$opt_recipients = get_option('bbpress_notify_newtopic_recipients');
    	$recipients = array();
  3. useStrict
    Member
    Posted 1 year ago #

    Very disappointed to see 0.2.1 come out without my changes above.

  4. PenFlex
    Member
    Posted 1 year ago #

    I came here looking for this. Thanks. This is definitely should be added to the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic