Ticket #7870: 7870.02.patch
| File 7870.02.patch, 2.7 KB (added by , 8 years ago) |
|---|
-
src/bp-groups/actions/create.php
182 182 setcookie( 'bp_completed_create_steps', false, time() - 3600, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 183 183 184 184 // Once we completed all steps, record the group creation in the activity stream. 185 groups_record_activity( array( 186 'type' => 'created_group', 187 'item_id' => $bp->groups->new_group_id 188 ) ); 185 if ( bp_is_active( 'activity' ) ) { 186 groups_record_activity( array( 187 'type' => 'created_group', 188 'item_id' => $bp->groups->new_group_id 189 ) ); 190 } 189 191 190 192 /** 191 193 * Fires after the group has been successfully created. -
src/bp-groups/bp-groups-functions.php
585 585 $group = $bp->groups->current_group; 586 586 587 587 // Record this in activity streams. 588 groups_record_activity( array( 589 'type' => 'joined_group', 590 'item_id' => $group_id, 591 'user_id' => $user_id, 592 ) ); 588 if ( bp_is_active( 'activity' ) ) { 589 groups_record_activity( array( 590 'type' => 'joined_group', 591 'item_id' => $group_id, 592 'user_id' => $user_id, 593 ) ); 594 } 593 595 594 596 /** 595 597 * Fires after a user joins a group. -
src/bp-groups/screens/user/invites.php
28 28 29 29 bp_core_add_message( sprintf( __( 'Group invite accepted. Visit %s.', 'buddypress' ), bp_get_group_link( $group ) ) ); 30 30 31 groups_record_activity( array( 32 'type' => 'joined_group', 33 'item_id' => $group->id 34 ) ); 31 if ( bp_is_active( 'activity' ) ) { 32 groups_record_activity( array( 33 'type' => 'joined_group', 34 'item_id' => $group->id 35 ) ); 36 } 35 37 } 36 38 37 39 if ( isset( $_GET['redirect_to'] ) ) { -
src/bp-templates/bp-nouveau/includes/groups/ajax.php
107 107 ); 108 108 109 109 } else { 110 groups_record_activity( 111 array( 112 'type' => 'joined_group', 113 'item_id' => $group->id, 114 ) 115 ); 110 if ( bp_is_active( 'activity' ) ) { 111 groups_record_activity( 112 array( 113 'type' => 'joined_group', 114 'item_id' => $group->id, 115 ) 116 ); 117 } 116 118 117 119 // User is now a member of the group 118 120 $group->is_member = '1';