Skip to:
Content

BuddyPress.org

Changeset 849


Ignore:
Timestamp:
01/15/2009 11:01:33 PM (16 years ago)
Author:
apeatling
Message:

Fixed issue with group activity not being logged in activity streams. Bug #261

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r846 r849  
    227227    $activity->date_recorded = $recorded_time;
    228228    $activity->is_private = $is_private;
    229  
     229   
    230230    $loggedin_user_save = $activity->save();
    231231   
  • trunk/bp-activity/bp-activity-classes.php

    r846 r849  
    8686    function delete( $item_id, $component_name, $component_action, $user_id, $secondary_item_id = false ) {
    8787        global $wpdb, $bp;
     88       
     89        if ( !$user_id )
     90            return false;
    8891       
    8992        if ( !$bp['activity'] )
  • trunk/bp-groups.php

    r840 r849  
    831831
    832832function groups_record_activity( $args = true ) {
     833    global $group_obj;
     834   
    833835    if ( function_exists('bp_activity_record') ) {
    834836        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' )
    839839            bp_activity_record( $item_id, $component_name, $component_action, $is_private, $secondary_item_id, $user_id, $secondary_user_id );
    840840    }
     
    15261526function groups_new_wire_post( $group_id, $content ) {
    15271527    if ( $wire_post_id = bp_wire_new_post( $group_id, $content ) ) {
    1528        
    15291528        /* Record in activity streams */
    15301529        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.