Skip to:
Content

BuddyPress.org

Ticket #6494: 6494.03.patch

File 6494.03.patch, 899 bytes (added by r-a-y, 10 years ago)
  • src/bp-blogs/bp-blogs-functions.php

     
    655655                // record comment as BP activity comment under the parent 'new_blog_post'
    656656                // activity item
    657657                } else {
    658                         // this is a comment edit
    659658                        // check to see if corresponding activity entry already exists
    660                         if ( ! empty( $_REQUEST['action'] ) ) {
    661                                 $existing_activity_id = get_comment_meta( $comment_id, 'bp_activity_comment_id', true );
    662 
    663                                 if ( ! empty( $existing_activity_id ) ) {
    664                                         $args['id'] = $existing_activity_id;
    665                                 }
     659                        $existing_activity_id = get_comment_meta( $comment_id, 'bp_activity_comment_id', true );
     660                        if ( ! empty( $existing_activity_id ) ) {
     661                                $args['id'] = $existing_activity_id;
    666662                        }
    667663
    668664                        // find the parent 'new_blog_post' activity entry