Skip to:
Content

BuddyPress.org

Changeset 849 for trunk/bp-groups.php


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.