Skip to:
Content

BuddyPress.org

Ticket #4222: 4222.01.patch

File 4222.01.patch, 786 bytes (added by DJPaul, 10 years ago)
  • bp-blogs/bp-blogs-functions.php

    function bp_blogs_transition_activity_status( $new_status, $old_status, $comment 
    497497        $comment_akismet_history = create_function( '$t', '$t[] = "new_blog_comment"; return $t;' );
    498498        add_filter( 'bp_akismet_get_activity_types', $comment_akismet_history );
    499499
     500        /**
     501         * If we're here, that means an activity item already existed for this comment. Make sure we don't
     502         * send a multiple @mention emails to the user.
     503         */
     504        remove_action( 'bp_activity_after_save', 'bp_activity_at_name_filter_updates' );
     505
    500506        // Save the updated activity
    501507        $activity->save();
    502508