Ticket #1046: jeffsayre_1046_groups_actions.patch
File jeffsayre_1046_groups_actions.patch, 2.0 KB (added by , 15 years ago) |
---|
-
Users/jeffsayre/Desktop/BuddyPress
1392 1392 1393 1393 bp_activity_set_action( $bp->groups->id, 'created_group', __( 'Created a group', 'buddypress' ) ); 1394 1394 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' ) ); 1396 1396 bp_activity_set_action( $bp->groups->id, 'new_forum_topic', __( 'New group forum topic', 'buddypress' ) ); 1397 1397 bp_activity_set_action( $bp->groups->id, 'new_forum_post', __( 'New group forum post', 'buddypress' ) ); 1398 1398 … … 1992 1992 groups_record_activity( array( 1993 1993 'content' => apply_filters( 'groups_activity_new_wire_post', $activity_content ), 1994 1994 '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', 1996 1996 'item_id' => $bp->groups->current_group->id, 1997 1997 'secondary_item_id' => $wire_post->item_id 1998 1998 ) ); … … 2009 2009 if ( bp_wire_delete_post( $wire_post_id, 'groups', $table_name ) ) { 2010 2010 /* Delete the activity stream item */ 2011 2011 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' ) ); 2013 2013 } 2014 2014 2015 2015 do_action( 'groups_deleted_wire_post', $wire_post_id );