]> git.mxchange.org Git - friendica.git/commitdiff
Now using App::get_cached_avatar_image for /profile/{nickname} page
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>
Mon, 18 Jun 2012 19:18:43 +0000 (22:18 +0300)
committerfriendica <info@friendica.com>
Tue, 19 Jun 2012 23:05:39 +0000 (16:05 -0700)
mod/profiles.php

index 7b6e61ad6abf94788e8c96f1f5a87896fbcff782..a9da5454cf787ae4674b77d4ecc96defaa20e91d 100644 (file)
@@ -635,7 +635,7 @@ function profiles_content(&$a) {
        }
        else {
 
-               $r = q("SELECT `profile`.*, `contact`.`avatar-date` AS picdate FROM `profile` LEFT JOIN `contact` on `contact`.`uid` = `profile`.`uid` WHERE `profile`.`uid` = %d and contact.self = 1",
+               $r = q("SELECT * FROM `profile` WHERE `uid` = %d",
                        local_user());
                if(count($r)) {
 
@@ -652,7 +652,7 @@ function profiles_content(&$a) {
 
                        foreach($r as $rr) {
                                $o .= replace_macros($tpl, array(
-                                       '$photo' => $rr['thumb'] . '?rev=' . urlencode($rr['picdate']),
+                                       '$photo' => $a->get_cached_avatar_image($rr['thumb']),
                                        '$id' => $rr['id'],
                                        '$alt' => t('Profile Image'),
                                        '$profile_name' => $rr['profile-name'],