Skip to:
Content

BuddyPress.org

Ticket #1046: jeffsayre_1046_groups_actions.patch

File jeffsayre_1046_groups_actions.patch, 2.0 KB (added by jeffsayre, 15 years ago)
  • Users/jeffsayre/Desktop/BuddyPress

     
    13921392
    13931393        bp_activity_set_action( $bp->groups->id, 'created_group', __( 'Created a group', 'buddypress' ) );
    13941394        bp_activity_set_action( $bp->groups->id, 'joined_group', __( 'Joined a group', 'buddypress' ) );
    1395         bp_activity_set_action( $bp->groups->id, 'new_wire_post', __( 'New group wire post', 'buddypress' ) );
     1395        bp_activity_set_action( $bp->groups->id, 'new_group_wire_post', __( 'New group wire post', 'buddypress' ) );
    13961396        bp_activity_set_action( $bp->groups->id, 'new_forum_topic', __( 'New group forum topic', 'buddypress' ) );
    13971397        bp_activity_set_action( $bp->groups->id, 'new_forum_post', __( 'New group forum post', 'buddypress' ) );
    13981398
     
    19921992                groups_record_activity( array(
    19931993                        'content' => apply_filters( 'groups_activity_new_wire_post', $activity_content ),
    19941994                        'primary_link' => apply_filters( 'groups_activity_new_wire_post_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ),
    1995                         'component_action' => 'new_wire_post',
     1995                        'component_action' => 'new_group_wire_post',
    19961996                        'item_id' => $bp->groups->current_group->id,
    19971997                        'secondary_item_id' => $wire_post->item_id
    19981998                ) );
     
    20092009        if ( bp_wire_delete_post( $wire_post_id, 'groups', $table_name ) ) {
    20102010                /* Delete the activity stream item */
    20112011                if ( function_exists( 'bp_activity_delete_by_item_id' ) ) {
    2012                         bp_activity_delete_by_item_id( array( 'item_id' => $wire_post_id, 'component_name' => 'groups', 'component_action' => 'new_wire_post' ) );
     2012                        bp_activity_delete_by_item_id( array( 'item_id' => $wire_post_id, 'component_name' => 'groups', 'component_action' => 'new_group_wire_post' ) );
    20132013                }
    20142014                       
    20152015                do_action( 'groups_deleted_wire_post', $wire_post_id );