]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
quattro: in post display page, scroll to and flash selected comment
[friendica.git] / mod / profiles.php
index 6a8ce9e1eda2d93441d91de22ab4334c50b08e8a..7b6e61ad6abf94788e8c96f1f5a87896fbcff782 100644 (file)
@@ -635,7 +635,7 @@ function profiles_content(&$a) {
        }
        else {
 
-               $r = q("SELECT * FROM `profile` WHERE `uid` = %d",
+               $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",
                        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'],
+                                       '$photo' => $rr['thumb'] . '?rev=' . urlencode($rr['picdate']),
                                        '$id' => $rr['id'],
                                        '$alt' => t('Profile Image'),
                                        '$profile_name' => $rr['profile-name'],