Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/13/2009 01:01:37 AM (15 years ago)
Author:
apeatling
Message:

Initial support for threaded activity stream commenting. Some major performance improvements around fetching profile and group data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-avatars.php

    r2077 r2088  
    130130
    131131        if ( 'user' == $object ) {
    132             $ud = get_userdata( $item_id );
    133             $grav_email = $ud->user_email;
     132            $grav_email = bp_core_get_user_email( $item_id );
    134133        } else if ( 'group' == $object || 'blog' == $object ) {
    135134            $grav_email = "{$item_id}-{$object}@{$bp->root_domain}";
     
    140139
    141140        return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
     141
    142142    } else if ( !file_exists( $avatar_url ) && $no_grav )
    143143        return false;
Note: See TracChangeset for help on using the changeset viewer.