Beginning to use App::get_cached_avatar_image for loading profile images in conversations

pull/344/merge
Zvi ben Yaakov (a.k.a rdc) 2012-06-18 21:17:02 +03:00 zatwierdzone przez friendica
rodzic 9058029eef
commit ac50c9e84d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -308,7 +308,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
if(($normalised != 'mailbox') && (x($a->contacts[$normalised])))
$profile_avatar = $a->contacts[$normalised]['thumb'];
else
$profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']);
$profile_avatar = ((strlen($item['author-avatar'])) ? $a->get_cached_avatar_image($item['author-avatar']) : $item['thumb']);
$locate = array('location' => $item['location'], 'coord' => $item['coord'], 'html' => '');
call_hooks('render_location',$locate);