Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/15/2011 08:29:49 PM (14 years ago)
Author:
boonebgorges
Message:

Corrects logic error in previous commit. Boo boone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r4514 r4515  
    551551        // Primary activity avatar is always a user, but can be modified via a filter
    552552        $object  = apply_filters( 'bp_get_activity_avatar_object_' . $activities_template->activity->component, 'user' );
    553         $item_id = apply_filters( 'bp_get_activity_avatar_item_id', $activities_template->activity->user_id );
     553        $item_id = $user_id ? $user_id : $activities_template->activity->user_id;
     554        $item_id = apply_filters( 'bp_get_activity_avatar_item_id', $item_id );
    554555
    555556        // If this is a user object pass the users' email address for Gravatar so we don't have to refetch it.
     
    557558            $email = $activities_template->activity->user_email;
    558559
    559         return apply_filters( 'bp_get_activity_avatar', bp_core_fetch_avatar( array( 'item_id' => $user_id, 'object' => $object, 'type' => $type, 'alt' => $alt, 'class' => $class, 'width' => $width, 'height' => $height, 'email' => $email ) ) );
     560        return apply_filters( 'bp_get_activity_avatar', bp_core_fetch_avatar( array( 'item_id' => $item_id, 'object' => $object, 'type' => $type, 'alt' => $alt, 'class' => $class, 'width' => $width, 'height' => $height, 'email' => $email ) ) );
    560561    }
    561562
Note: See TracChangeset for help on using the changeset viewer.