Skip to:
Content

Ticket #2578: 2578.001.patch

File 2578.001.patch, 1.2 KB (added by r-a-y, 4 years ago)
  • buddypress/bp-activity/bp-activity-templatetags.php

     
    415415                $item_id = false; 
    416416                if ( (int)$activities_template->activity->user_id ) 
    417417                        $item_id = $activities_template->activity->user_id; 
    418                 else if ( $activities_template->activity->item_id ) 
    419                         $item_id = $activities_template->activity->item_id; 
    420418 
    421419                $object = 'user'; 
    422                 if ( $bp->groups->id == $activities_template->activity->component && !(int) $activities_template->activity->user_id ) 
     420                if ( $bp->groups->id == $activities_template->activity->component ) { 
    423421                        $object = 'group'; 
    424                 if ( $bp->blogs->id == $activities_template->activity->component && !(int) $activities_template->activity->user_id ) 
     422                        $item_id = $activities_template->activity->item_id; 
     423                } 
     424                if ( $bp->blogs->id == $activities_template->activity->component ) { 
    425425                        $object = 'blog'; 
     426                        $item_id = $activities_template->activity->item_id; 
     427                } 
    426428 
    427429                $object = apply_filters( 'bp_get_activity_avatar_object_' . $activities_template->activity->component, $object ); 
    428430