]> git.mxchange.org Git - friendica.git/commitdiff
Beginning to use App::get_cached_avatar_image for loading profile images
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>
Mon, 18 Jun 2012 18:17:02 +0000 (21:17 +0300)
committerZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>
Mon, 18 Jun 2012 18:17:02 +0000 (21:17 +0300)
in conversations

include/conversation.php

index 1d5a92284ac217240ef4f2f088b7378190a07704..ee012232e22d74714e445db267912414aad26505 100644 (file)
@@ -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);