Changeset 849
- Timestamp:
- 01/15/2009 11:01:33 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r846 r849 227 227 $activity->date_recorded = $recorded_time; 228 228 $activity->is_private = $is_private; 229 229 230 230 $loggedin_user_save = $activity->save(); 231 231 -
trunk/bp-activity/bp-activity-classes.php
r846 r849 86 86 function delete( $item_id, $component_name, $component_action, $user_id, $secondary_item_id = false ) { 87 87 global $wpdb, $bp; 88 89 if ( !$user_id ) 90 return false; 88 91 89 92 if ( !$bp['activity'] ) -
trunk/bp-groups.php
r840 r849 831 831 832 832 function groups_record_activity( $args = true ) { 833 global $group_obj; 834 833 835 if ( function_exists('bp_activity_record') ) { 834 836 extract($args); 835 836 $group = new BP_Groups_Group( $item_id, false, false ); 837 838 if ( $group->status == 'public' ) 837 838 if ( $group_obj->status == 'public' ) 839 839 bp_activity_record( $item_id, $component_name, $component_action, $is_private, $secondary_item_id, $user_id, $secondary_user_id ); 840 840 } … … 1526 1526 function groups_new_wire_post( $group_id, $content ) { 1527 1527 if ( $wire_post_id = bp_wire_new_post( $group_id, $content ) ) { 1528 1529 1528 /* Record in activity streams */ 1530 1529 groups_record_activity( array( 'item_id' => $wire_post_id, 'group_id' => $group_id, 'component_name' => 'groups', 'component_action' => 'new_wire_post', 'is_private' => 0 ) );
Note: See TracChangeset
for help on using the changeset viewer.